Gary Ruben wrote:
> See below:
>
> Robert Kern wrote:
>   
>> Gary Ruben wrote:
>>     
>>> Should
>>>  >>> seed(1)
>>> act the same as
>>>  >>> seed(array([1]))
>>> 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.
>>     

I can verify that this now works with numpy 1.0b1 on Python 2.3.  The 
change was using an updated Pyrex for generating mtrand.c (it no longer 
calls PyLong_AsUnsignedLong on integer objects as it did before).

-Travis


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to