diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-20 16:21:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-20 16:21:29 +0700 |
commit | 58489a7ad21bea55b37726ade010f4208a9d11c3 (patch) | |
tree | d4f2325c166f2451ac8e4add138ef726a5c6a284 /crypto/src | |
parent | Don't reveal the output size in exception message (diff) | |
download | BouncyCastle.NET-ed25519-58489a7ad21bea55b37726ade010f4208a9d11c3.tar.xz |
Call NextBytes instead of GenerateSeed
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/prng/BasicEntropySourceProvider.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/crypto/prng/BasicEntropySourceProvider.cs b/crypto/src/crypto/prng/BasicEntropySourceProvider.cs index 0e929e0fd..31a8461f0 100644 --- a/crypto/src/crypto/prng/BasicEntropySourceProvider.cs +++ b/crypto/src/crypto/prng/BasicEntropySourceProvider.cs @@ -58,7 +58,8 @@ namespace Org.BouncyCastle.Crypto.Prng byte[] IEntropySource.GetEntropy() { - return mSecureRandom.GenerateSeed((mEntropySize + 7) / 8); + // TODO[FIPS] Not all SecureRandom implementations are considered valid entropy sources + return SecureRandom.GetNextBytes(mSecureRandom, (mEntropySize + 7) / 8); } int IEntropySource.EntropySize |