8 .Nd random data source devices.
10 .Cd "pseudo-device random"
14 device produces uniformly distributed random byte values
15 of potentially high quality.
17 To obtain random bytes, open
19 for reading and read from it.
21 To add entropy to the random generation system, open
23 for writing and write data that you believe to be somehow random.
26 is a compatibility nod to Linux. On Linux,
28 will produce lower quality output if the entropy pool drains, while
30 will prefer to block and wait for additional entropy to be collected.
31 With Yarrow, this choice and distinction is not necessary, and
32 the two devices behave identically. You may use either.
38 pseudo random number generator algorithm and maintains its entropy pool.
39 Additional entropy is fed to the generator regularly by the
41 daemon from random jitter measurements of the kernel.
43 is also responsible for periodically saving some entropy to disk
44 and reloading it during startup to provide entropy in early system
47 You may feed additional entropy to the generator by writing it to the
49 device, though this is not required in a normal operating environment.
50 .Sh LIMITATIONS AND WARNINGS
52 is a fairly resilient algorithm, and is believed
53 to be resistant to non-root.
54 The quality of its output is however dependent on regular addition
55 of appropriate entropy. If the
57 system daemon fails for any reason, output quality will suffer
58 over time without any explicit indication from the
62 Paranoid programmers can counteract this risk somewhat by collecting
63 entropy of their choice (e.g. from keystroke or mouse timings)
66 directly before obtaining important random numbers.
68 .Bl -tag -width /dev/urandom -compact
75 device appeared in the Linux operating system.