Within the BouncyCastle.Security namespace, there lives the SecureRandom
class. Is it thread-safe in its crypto-random assurances?

 

i.e. If I had 100 threads drawing random bytes out of a single instance of
that class (created for example via SecureRandom.GetInstance("SHA256PRNG"))
would it actually pull random bytes in an overall crypto-random manner? Or
will it trip over and (example) keep supplying the same "random" byte to
multiple threads due to lack of thread safety?

 

If yes but this behavior was recently changed, would appreciate that tip
too!

 

Thanks

Reply via email to