mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Minor source formatting fixes.
This commit is contained in:
parent
e04ee70a68
commit
954bcf5fe0
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@
|
||||||
/* ---------------------------------------------------------------*/
|
/* ---------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#include <time.h> // for seeding to current time
|
#include <time.h> /* for seeding to current time */
|
||||||
|
|
||||||
/* Period parameters -- These are all magic. Don't change. */
|
/* Period parameters -- These are all magic. Don't change. */
|
||||||
#define N 624
|
#define N 624
|
||||||
|
@ -110,7 +110,7 @@ genrand_int32(RandomObject *self)
|
||||||
for (;kk<N-1;kk++) {
|
for (;kk<N-1;kk++) {
|
||||||
y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK);
|
y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK);
|
||||||
mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1UL];
|
mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1UL];
|
||||||
}
|
}
|
||||||
y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK);
|
y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK);
|
||||||
mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1UL];
|
mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1UL];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue