summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-02-05 15:56:04 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-02-05 15:56:04 +0000
commit952b6153de6b9223e318948d8c1ae090672a135c (patch)
tree5cc2fec700412efeb39fdf6b6ff1ea55af25d641
parent24a701b2698d34e599f5b9d771b6c2ec555be2bf (diff)
Notes
-rw-r--r--sys/dev/random/harvest.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c
index b6f3fba527427..87c8213a2ee70 100644
--- a/sys/dev/random/harvest.c
+++ b/sys/dev/random/harvest.c
@@ -101,13 +101,8 @@ read_random_phony(void *buf, int count)
{
u_long randval;
int size, i;
- static int initialised = 0;
- /* Try to give random(9) a half decent initialisation
- * DO NOT make the mistake of thinking this is secure!!
- */
- if (!initialised)
- srandom((u_long)get_cyclecount());
+ /* srandom() is called in kern/init_main.c:proc0_post() */
/* Fill buf[] with random(9) output */
for (i = 0; i < count; i+= (int)sizeof(u_long)) {