[Python-checkins] python/nondist/sandbox/twister _random.c,1.10,1.11
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sat, 28 Dec 2002 23:45:02 -0800
Update of /cvsroot/python/python/nondist/sandbox/twister
In directory sc8-pr-cvs1:/tmp/cvs-serv30204
Modified Files:
_random.c
Log Message:
Moved the time_t vrbl into the only block that uses it.
Index: _random.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/twister/_random.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** _random.c 29 Dec 2002 07:33:19 -0000 1.10
--- _random.c 29 Dec 2002 07:45:00 -0000 1.11
***************
*** 202,206 ****
random_seed(RandomObject *self, PyObject *args)
{
- time_t now;
unsigned long *key;
unsigned long keylength;
--- 202,205 ----
***************
*** 221,224 ****
--- 220,225 ----
if (arg == NULL || arg == Py_None) {
+ time_t now;
+
time(&now);
init_genrand(self, (unsigned long)now);