MCOOKIESection: Linux Programmer's Manual (1)Updated: 25 September 1995 |
MCOOKIESection: Linux Programmer's Manual (1)Updated: 25 September 1995 |
The "random" number generated is actually the output of the MD5 message digest fed with various piece of random information: the current time, the process id, the parent process id, the contents of an input file (if -f is specified), and several bytes of information from the first of the following devices which is present: /dev/random, /dev/urandom, files in /proc, /dev/audio.
It is assumed that none of the devices opened will block.