/dev/random
/ dev / random - a virtual machine in Unix operating systems, which functions as a random number generator with randomness from device drivers and other sources. When reading from / dev / random, random bytes will be generated. / dev / random is appropriate for high data accidentality and predictability of subsequent data, such as when creating cryptographic keys.
/ dev / random gets more data from the buffer. If it is empty, the thread operation that reads from the above. the file is paused. This can be easily checked by typing in the command line:
$ cat /dev/random
For this reason, / dev / random is not suitable for generating many random numbers in a short time. The equivalent of / dev / random to generate large amounts of pseudorandom data (ie, less random data and predictability of subsequent data) is / dev / urandom (from unblocking) which uses hash functions. However, most cryptographic programs (such as OpenSSL, PGP, and GnuPG) use their own random data generator. seed with / dev / random.wiki
Comments
Post a Comment