[Mono-dev] Help Finding this Function?

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Sat Jun 28 13:29:17 UTC 2014

> From: Rafael Teixeira [mailto:monoman at gmail.com]
> Sent: Friday, June 27, 2014 10:42 AM
> Oops, looking more attentively at the code rand.c has lines like:
> #if defined (HOST_WIN32)

Ok, I am seeing it now, thanks.  This is an overview:
#if defined (HOST_WIN32)
    if Intel PIII RNG, use it,
    else if RSA, use it
    else throw exception
#elif defined (__native_client__)
    use these:   (which are not good for crypto)
    srand (time (NULL));
    if (egd)
        use egd
        by default, use /dev/urandom, unless overridden to use /dev/random

More information about the Mono-devel-list mailing list