[Numpy-discussion] possible bug in seed argument
gruben at bigpond.net.au
Fri Jul 28 08:22:52 CDT 2006
Robert Kern wrote:
> Gary Ruben wrote:
>> >>> seed(1)
>> act the same as
>> >>> seed(array())
>> in the random module?
> No. They use slightly different mechanisms to seed. The integer uses RandomKit's
> seeding routine. I borrowed Python's mechanism for seeding from an array of
> integers. Now that it comes up, though, it is probably a good idea to use the
> same mechanism for both cases.
>> It generates a traceback with the Windows 1.0b1 binary.
> Please always copy-and-paste tracebacks when reporting bugs. It works for me
> with r2881; I'll rebuild with a later version and try again.
Here it is for reference. Not a very deep traceback:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in -toplevel-
File "mtrand.pyx", line 311, in mtrand.RandomState.seed
SystemError: C:\sf\python\dist23\src\Objects\longobject.c:240: bad
argument to internal function
More information about the Numpy-discussion