$OpenBSD: patch-rand_fastrand_c,v 1.1 2015/11/20 10:09:52 sthen Exp $
--- rand/fastrand.c.orig	Fri Oct  2 15:35:18 2015
+++ rand/fastrand.c	Wed Oct 21 00:26:56 2015
@@ -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
