blob: eeb30f279a10dc696037fb92b3d85c7771c44001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-config.h.in,v 1.1 2014/06/01 06:19:02 ryoon Exp $
* OpenBSD has no arc4random_stir
--- config.h.in.orig 2012-03-21 04:45:48.000000000 +0000
+++ config.h.in
@@ -674,7 +674,11 @@
#ifdef HAVE_ARC4RANDOM
# define CUPS_RAND() arc4random()
+#if defined(__OpenBSD__)
+# define CUPS_SRAND(v)
+#else
# define CUPS_SRAND(v) arc4random_stir()
+#endif
#elif defined(HAVE_RANDOM)
# define CUPS_RAND() random()
# define CUPS_SRAND(v) srandom(v)
|