summary refs log tree commit diff
path: root/crypto/src/security/SecureRandom.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/security/SecureRandom.cs')
-rw-r--r--crypto/src/security/SecureRandom.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/security/SecureRandom.cs b/crypto/src/security/SecureRandom.cs

index 8c6b74d5b..982fbf3a0 100644 --- a/crypto/src/security/SecureRandom.cs +++ b/crypto/src/security/SecureRandom.cs
@@ -246,14 +246,14 @@ namespace Org.BouncyCastle.Security { byte[] bytes = new byte[4]; NextBytes(bytes); - return (int)Pack.BE_To_UInt32(bytes); + return (int)Pack.BE_To_UInt32(bytes, 0); } public virtual long NextLong() { byte[] bytes = new byte[8]; NextBytes(bytes); - return (long)Pack.BE_To_UInt64(bytes); + return (long)Pack.BE_To_UInt64(bytes, 0); } } }