[Python-checkins] python/dist/src/Modules _randommodule.c,1.3,1.4
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Wed, 16 Apr 2003 11:40:07 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv3025
Modified Files:
_randommodule.c
Log Message:
Minor source formatting fixes.
Index: _randommodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_randommodule.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** _randommodule.c 6 Jan 2003 12:41:25 -0000 1.3
--- _randommodule.c 16 Apr 2003 18:40:04 -0000 1.4
***************
*** 68,72 ****
#include "Python.h"
! #include <time.h> // for seeding to current time
/* Period parameters -- These are all magic. Don't change. */
--- 68,72 ----
#include "Python.h"
! #include <time.h> /* for seeding to current time */
/* Period parameters -- These are all magic. Don't change. */
***************
*** 111,115 ****
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];
--- 111,115 ----
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];