summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crypto/prng/BasicEntropySourceProvider.cs3
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