Cleanup: comment blocks, trailing space in comments
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
#define MIXBITS(u, v) (((u)&UMASK) | ((v)&LMASK))
|
||||
#define TWIST(u, v) ((MIXBITS(u, v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL))
|
||||
|
||||
static ulong state[N]; /* the array for the state vector */
|
||||
static ulong state[N]; /* The array for the state vector. */
|
||||
static int left = 1;
|
||||
static int initf = 0;
|
||||
static ulong *next;
|
||||
@@ -106,10 +106,10 @@ static void init_genrand(ulong s)
|
||||
state[0] = s & 0xffffffffUL;
|
||||
for (j = 1; j < N; j++) {
|
||||
state[j] = (1812433253UL * (state[j - 1] ^ (state[j - 1] >> 30)) + j);
|
||||
/* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */
|
||||
/* In the previous versions, MSBs of the seed affect */
|
||||
/* only MSBs of the array state[]. */
|
||||
/* 2002/01/09 modified by Makoto Matsumoto */
|
||||
/* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier.
|
||||
* In the previous versions, MSBs of the seed affect
|
||||
* only MSBs of the array state[].
|
||||
* 2002/01/09 modified by Makoto Matsumoto. */
|
||||
state[j] &= 0xffffffffUL; /* for >32 bit machines */
|
||||
}
|
||||
left = 1;
|
||||
|
||||
Reference in New Issue
Block a user