File ntp-4.2.6p2-seed_file.patch of Package ntp
--- ntpd/ntp_crypto.c.orig 2010-10-21 20:55:20.000000000 +0200
+++ ntpd/ntp_crypto.c 2010-10-21 20:56:36.000000000 +0200
@@ -3698,10 +3698,12 @@
randfile = rand_file;
if ((bytes = RAND_load_file(randfile, -1)) == 0) {
+ RAND_write_file(rand_file);
msyslog(LOG_ERR,
- "crypto_setup: random seed file %s missing",
+ "crypto_setup: random seed file %s missing - created one\n",
randfile);
- exit (-1);
+ crypto_setup();
+ return ( 0 );
}
get_systime(&seed);
RAND_seed(&seed, sizeof(l_fp));