diff options
author | Raymond Hettinger <python@rcn.com> | 2003-04-16 18:40:04 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-04-16 18:40:04 (GMT) |
commit | 954bcf5fe0d44f224c404628b0966bc63277548a (patch) | |
tree | d82fc6f5d7e3fd927f185f5e8fe8fa44affb96bf /Modules | |
parent | e04ee70a68045f8d229ab59ad9b0256d0278c745 (diff) | |
download | cpython-954bcf5fe0d44f224c404628b0966bc63277548a.zip cpython-954bcf5fe0d44f224c404628b0966bc63277548a.tar.gz cpython-954bcf5fe0d44f224c404628b0966bc63277548a.tar.bz2 |
Minor source formatting fixes.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_randommodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 35f10a5..00863b6 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -67,7 +67,7 @@ /* ---------------------------------------------------------------*/ #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. */ #define N 624 @@ -110,7 +110,7 @@ genrand_int32(RandomObject *self) for (;kk<N-1;kk++) { y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1UL]; - } + } y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK); mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1UL]; |