summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/random.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1996-08-14 07:46:46 +0000
committerniklas <niklas@openbsd.org>1996-08-14 07:46:46 +0000
commitaaf3c7dbb9accc9c0ee13fa6c04ea4e3d0f0c4a0 (patch)
treee6c59c345e745f5562fffcd434ad06a4d088267c /sys/lib/libkern/random.c
parentincorrect size calculation in mbuf copying, netbsd pr#2692; fix from explorer@flame.org (diff)
downloadwireguard-openbsd-aaf3c7dbb9accc9c0ee13fa6c04ea4e3d0f0c4a0.tar.xz
wireguard-openbsd-aaf3c7dbb9accc9c0ee13fa6c04ea4e3d0f0c4a0.zip
Remove extra underscore from _randseed
Diffstat (limited to 'sys/lib/libkern/random.c')
-rw-r--r--sys/lib/libkern/random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/lib/libkern/random.c b/sys/lib/libkern/random.c
index 7fef7c27bb2..4c3103975b2 100644
--- a/sys/lib/libkern/random.c
+++ b/sys/lib/libkern/random.c
@@ -44,7 +44,7 @@
* and whatever else we might use it for. The result is uniform on
* [0, 2^31 - 1].
*/
-u_long __randseed = 1;
+u_long _randseed = 1;
u_long
random()
@@ -57,12 +57,12 @@ random()
* Park and Miller, Communications of the ACM, vol. 31, no. 10,
* October 1988, p. 1195.
*/
- x = __randseed;
+ x = _randseed;
hi = x / 127773;
lo = x % 127773;
t = 16807 * lo - 2836 * hi;
if (t <= 0)
t += 0x7fffffff;
- __randseed = t;
+ _randseed = t;
return (t);
}