/dev/u?random implementation
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Jan 8 14:55:35 GMT 2024
On Dec 20 16:32, Jim Garrison via Cygwin wrote:
> I dug around in the Cygwin doc looking for details on how /dev/random
> and /dev/urandom are implemented, but came up empty. Is this
> documented anywhere?
Not documented as such, it's a "use the source, luke" kind of
information.
/dev/random is implemted by calling RtlGenRandom().
/dev/urandom is implemted by calling RtlGenRandom() and, if that fails
(which is extremly unlikely) it falls back to a very simple PRNG.
Corinna
More information about the Cygwin
mailing list