summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-14 07:46:47 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-14 07:46:47 +0000
commit224bf5f3b27a5607cfba1f46234c8a4fd6927b2a (patch)
tree2bb7e4db134c04ad3ed023a4016c6240f7872d95
parenta6aa1a42246a669cf4c80baa9e6305fd324bc202 (diff)
Remove extra underscore from _randseed
-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);
}