openbsd-ports/net/isc-bind/patches/patch-lib_isc_random_c
2013-10-22 08:26:12 +00:00

16 lines
376 B
Plaintext

$OpenBSD: patch-lib_isc_random_c,v 1.1 2013/10/22 08:26:12 sthen Exp $
arc4random(4) seeds itself
--- lib/isc/random.c.orig Tue Oct 22 02:14:12 2013
+++ lib/isc/random.c Tue Oct 22 02:14:30 2013
@@ -67,8 +67,6 @@ isc_random_seed(isc_uint32_t seed)
#ifndef HAVE_ARC4RANDOM
srand(seed);
-#else
- arc4random_addrandom((u_char *) &seed, sizeof(isc_uint32_t));
#endif
}