diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-05-24 19:47:33 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-05-24 19:47:33 +0700 |
commit | 7519bacebd39868c9970799ad41ede7892a4a68d (patch) | |
tree | f87b7e973b1475baaa49e7e809a7fbf2a11c03bd /crypto/src/security | |
parent | Add support for ARIA (diff) | |
download | BouncyCastle.NET-ed25519-7519bacebd39868c9970799ad41ede7892a4a68d.tar.xz |
Fix project files plus portability fixes
Diffstat (limited to 'crypto/src/security')
-rw-r--r-- | crypto/src/security/SecureRandom.cs | 4 |
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); } } } |