1234567891011121314151617 |
- $OpenBSD: patch-lib_roken_rand_c,v 1.2 2016/12/17 14:58:31 ajacoutot Exp $
- Use HAVE_ARC4RANDOM and choose to call arc4random() instead of srand()
- and rand() and friends.
- --- lib/roken/rand.c.orig Tue Nov 29 02:35:27 2016
- +++ lib/roken/rand.c Thu Dec 15 11:32:07 2016
- @@ -42,7 +42,7 @@ void ROKEN_LIB_FUNCTION
- rk_random_init(void)
- {
- #if defined(HAVE_ARC4RANDOM)
- - arc4random_stir();
- + /* do nothing */
- #elif defined(HAVE_SRANDOMDEV)
- srandomdev();
- #elif defined(HAVE_RANDOM)
|