$OpenBSD: patch-src_core_rand_fastrand_c,v 1.1 2017/07/03 22:14:20 sthen Exp $
--- src/core/rand/fastrand.c.orig	Mon May 15 22:48:56 2017
+++ src/core/rand/fastrand.c	Mon May 15 22:50:19 2017
@@ -25,6 +25,18 @@
 #include "fastrand.h"
 
 #include <stdlib.h>
+
+#ifdef HAVE_ARC4RANDOM
+unsigned int fastrand()
+{
+	return arc4random();
+}
+
+unsigned int fastrand_max(unsigned int max)
+{
+	return arc4random_uniform(max+1);
+}
+#else
 #include "isaac/rand.h"
 
 #define FASTRAND_MAX  ((unsigned int)(-1))
@@ -54,3 +66,4 @@ unsigned int fastrand_max(unsigned int max)
 {
 	return fastrand()%(max+1);
 }
+#endif
