Lines Matching refs:random
59 #define rand() random()
83 fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
96 /* Crank the random number generator a few times */
105 * Generate a series of random bytes. Use /dev/urandom if possible,
106 * and if not, use srandom/random.
130 * randomness if /dev/random/urandom is out to lunch.
441 /* No real reason to use the daemon for random uuid's -- yet */
447 * Check whether good random source (/dev/random or /dev/urandom)
454 return (!stat("/dev/random", &s) || !stat("/dev/urandom", &s));