2 Apr 2004 20:00
rnd.c patch
Sven Dehmlow <sven_dehmlow <at> gmx.de>
2004-04-02 18:00:49 GMT
2004-04-02 18:00:49 GMT
Hi, This patch makes the informations in /usr/src/sys/dev/rnd.c more OpenBSD specific. I haven't tested it much, but following the instructions didn't crash my machine...(Continue reading)Sven -- You are not expected to understand this. - Dennis Ritchie (Unix 6th Edition) -- --- /usr/src/sys/dev/rnd.c Fri Apr 2 19:08:43 2004 +++ rnd.c Fri Apr 2 19:39:09 2004 <at> <at> -192,28 +192,29 <at> <at> * 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
Sven
--
You are not expected to understand this.
- Dennis Ritchie (Unix 6th Edition)
--
--- /usr/src/sys/dev/rnd.c Fri Apr 2 19:08:43 2004
+++ rnd.c Fri Apr 2 19:39:09 2004
<at> <at> -192,28 +192,29 <at> <at>
* 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
RSS Feed