Module Name: src Committed By: dholland Date: Mon Feb 8 05:27:24 UTC 2016
Modified Files: src/common/lib/libc/stdlib: random.c Log Message: whitespace To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/stdlib/random.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libc/stdlib/random.c diff -u src/common/lib/libc/stdlib/random.c:1.4 src/common/lib/libc/stdlib/random.c:1.5 --- src/common/lib/libc/stdlib/random.c:1.4 Thu Jun 12 20:59:46 2014 +++ src/common/lib/libc/stdlib/random.c Mon Feb 8 05:27:24 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: random.c,v 1.4 2014/06/12 20:59:46 christos Exp $ */ +/* $NetBSD: random.c,v 1.5 2016/02/08 05:27:24 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -35,7 +35,7 @@ #if 0 static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95"; #else -__RCSID("$NetBSD: random.c,v 1.4 2014/06/12 20:59:46 christos Exp $"); +__RCSID("$NetBSD: random.c,v 1.5 2016/02/08 05:27:24 dholland Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -92,7 +92,7 @@ static long random_unlocked(void); * state information, which will allow a degree seven polynomial. (Note: * the zeroeth word of state information also has some other information * stored in it -- see setstate() for details). - * + * * The random number generation technique is a linear feedback shift register * approach, employing trinomials (since there are fewer terms to sum up that * way). In this approach, the least significant bit of all the numbers in @@ -318,12 +318,12 @@ srandom(unsigned int x) * the break values for the different R.N.G.'s, we choose the best (largest) * one we can and set things up for it. srandom() is then called to * initialize the state information. - * + * * Note that on return from srandom(), we set state[-1] to be the type * multiplexed with the current value of the rear pointer; this is so * successive calls to initstate() won't lose this information and will be * able to restart with setstate(). - * + * * Note: the first thing we do is save the current state, if any, just like * setstate() so that it doesn't matter when initstate is called. * @@ -511,7 +511,7 @@ random(void) { static u_long randseed = 1; long x, hi, lo, t; - + /* * Compute x[n + 1] = (7^5 * x[n]) mod (2^31 - 1). * From "Random number generators: good ones are hard to find",