diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-04-02 20:34:44 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-04-02 20:34:44 +0000 |
commit | 0b3d7a56a7886f747ed0960a517fe95d2a856b39 (patch) | |
tree | c27c4e47f6599d5e556a67a4a2edfbedf22cd4fd /sys/dev/rnd.c | |
parent | e887df3c0f00c5060df6adca1eadfaa64cf038f8 (diff) |
repair linuxisms tested on hppa, sparc, vax and i386; from Sven Dehmlow <sven_dehmlow@gmx.de>
Diffstat (limited to 'sys/dev/rnd.c')
-rw-r--r-- | sys/dev/rnd.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 11befa342ca..229cdd075bd 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.68 2004/04/02 20:17:45 mickey Exp $ */ +/* $OpenBSD: rnd.c,v 1.69 2004/04/02 20:34:43 mickey Exp $ */ /* * rnd.c -- A strong random number generator @@ -192,28 +192,29 @@ * echo "Saving random seed..." * dd if=/dev/urandom of=/etc/random-seed count=1 * - * For example, on many Linux systems, the appropriate scripts are - * usually /etc/rc.d/rc.local and /etc/rc.d/rc.0, respectively. + * For example, on OpenBSD systems, the appropriate scripts are + * usually /etc/rc.local and /etc/rc.shutdown, respectively. * * Effectively, these commands cause the contents of the entropy pool * to be saved at shutdown time and reloaded into the entropy pool at * start-up. (The 'dd' in the addition to the bootup script is to * make sure that /etc/random-seed is different for every start-up, - * even if the system crashes without executing rc.0.) Even with + * even if the system crashes without executing rc.shutdown) Even with * complete knowledge of the start-up activities, predicting the state * of the entropy pool requires knowledge of the previous history of * the system. * - * Configuring the /dev/random driver under Linux + * Configuring the random(4) driver under OpenBSD * ============================================== * - * The /dev/random driver under Linux uses minor numbers 8 and 9 of - * the /dev/mem major number (#1). So if your system does not have - * /dev/random and /dev/urandom created already, they can be created - * by using the commands: + * The special files for the random(4) driver should have been created + * during the installation process. However, if your system does not have + * /dev/random and /dev/[s|u|p|a]random created already, they can be created + * by using the MAKEDEV(8) script in /dev: * - * mknod /dev/random c 1 8 - * mknod /dev/urandom c 1 9 + * /dev/MAKEDEV random + * + * Check MAKEDEV for information about major and minor numbers. * * Acknowledgements: * ================= |