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);
}
}
}
|