We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263b55c commit d6d3f0bCopy full SHA for d6d3f0b
lib/libc/gen/arc4random.c
@@ -1,4 +1,4 @@
1
-/* $NetBSD: arc4random.c,v 1.3 2002/06/14 03:11:24 itojun Exp $ */
+/* $NetBSD: arc4random.c,v 1.4 2002/07/02 17:10:19 itojun Exp $ */
2
/* $OpenBSD: arc4random.c,v 1.6 2001/06/05 05:05:38 pvalchev Exp $ */
3
4
/*
@@ -103,7 +103,7 @@ arc4_stir(as)
103
read(fd, rdat.rnd, sizeof(rdat.rnd));
104
close(fd);
105
}
106
-#ifdef KERN_ARND
+#ifdef KERN_URND
107
else {
108
int i, mib[2];
109
size_t len;
@@ -112,7 +112,7 @@ arc4_stir(as)
112
* randomness from sysctl. */
113
114
mib[0] = CTL_KERN;
115
- mib[1] = KERN_ARND;
+ mib[1] = KERN_URND;
116
117
for (i = 0; i < sizeof(rdat.rnd) / sizeof(u_int); i ++) {
118
len = sizeof(u_int);
0 commit comments