From 73439ad0ff5363ad629086fe04ac44f5569a185e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 27 Mar 2022 06:46:04 +0000 Subject: Don't write to /dev/urandom. (It's useless or even harmful.) --- src/librandom/random_init.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/librandom/random_init.c') diff --git a/src/librandom/random_init.c b/src/librandom/random_init.c index 72671df..cd880e8 100644 --- a/src/librandom/random_init.c +++ b/src/librandom/random_init.c @@ -47,11 +47,7 @@ int random_fd = -1 ; int random_init () { - char seed[160] ; if (random_fd >= 0) return 1 ; - random_makeseed(seed) ; - surf_init(&surf_here, seed) ; - openwritenclose_unsafe("/dev/urandom", seed, 160) ; random_fd = openc_readb("/dev/urandom") ; return random_fd >= 0 ; } -- cgit v1.3.1