tags:

views:

25

answers:

0

Hi,

In the MSDN documentation at http://msdn.microsoft.com/en-us/library/aa379942.aspx the following is written:

With Microsoft CSPs, CryptGenRandom uses the same random number generator used by other security components. This allows numerous processes to contribute to a system-wide seed. CryptoAPI stores an intermediate random seed with every user.

and

If an application has access to a good random source, it can fill the pbBuffer buffer with some random data before calling CryptGenRandom. The CSP then uses this data to further randomize its internal seed.

This is somewhat ambiguous. Does this mean prefilling the I/O buffer ('pBuffer) of CryptGenRandom with data seeds the system-wide random source? Or only for the current user?

Thank you.