From 58489a7ad21bea55b37726ade010f4208a9d11c3 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 20 Nov 2015 16:21:29 +0700 Subject: Call NextBytes instead of GenerateSeed --- crypto/src/crypto/prng/BasicEntropySourceProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/src') 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 -- cgit 1.4.1