Is there a Windows equivalent of Linux's /dev/random?
A:
Kind of... Look in here for some details. http://en.wikipedia.org/wiki/CryptGenRandom#Using_RtlGenRandom You are going to be better off using the programming languages random generator functions.
EDIT - Can I ask what is the goal you are trying to achieve?
StingyJack
2008-10-10 13:46:30
−1. `/dev/random` is a cryptographically secure RNG. Advising people to blindly use the programming-language-supplied PRNG is a terribly bad idea.
Joey
2009-09-29 20:12:30
So I give a crypto friendly answer, and advice to look into the PL's rand functions to see if there is an equivalent (would you blindly trust one MS has supplied?) and thats bad?
StingyJack
2009-09-30 12:13:38
A:
If you're doing .NET development you can use the RandomNumberGenerator class.
tvanfosson
2008-10-10 13:52:06