According to <http://www.openssl.org/docs/crypto/RAND_bytes.html>, "RAND_bytes() returns 1 on success, 0 otherwise. The error code can be obtained by ERR_get_error(3). RAND_pseudo_bytes() returns 1 if the bytes generated are cryptographically strong, 0 otherwise. Both functions return -1 if they are not supported by the current RAND method. "
>From <http://cvs.openssl.org/fileview?f=openssl/crypto/rand/ rand_lib.c&v=1.20>: int RAND_pseudo_bytes(unsigned char *buf, int num) { const RAND_METHOD *meth = RAND_get_rand_method(); if (meth && meth->pseudorand) return meth->pseudorand(buf,num); return(-1); } Where is pseudorand defined? I figured maybe each of the rand_win.c, rand_unix.c, etc, would define it, but the string "pseudorand" doesn't appear to occur in any of those files. Any ideas? ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
