Message151157
Patch version 6:
- remove a debug code in dev_urandom() (did always raise an exception for testing)
- dev_urandom() raises an exception if open() fails
- os.urandom() uses again the right exception type and message (instead of a generic exception)
- os.urandom() is not more linked to PYTHONHASHSEED
- replace uint32_t by unsigned int in lcg_urandom() because Visual Studio 8 doesn't provide this type. "unsigned __int32" is available but I prefer to use a more common type. 32 or 64-bit types are supposed to generate the same sequence number (I didn't test).
- fix more tests
- regrtest.py restarts the process with PYTHONHASHSEED=randomseed if -r --randomseed=SEED is used
- fix compilation on Windows (add random.c to the Visual Studio project file) |
|
Date |
User |
Action |
Args |
2012-01-13 00:08:25 | vstinner | set | recipients:
+ vstinner, lemburg, gvanrossum, tim.peters, barry, georg.brandl, terry.reedy, jcea, mark.dickinson, pitrou, christian.heimes, benjamin.peterson, eric.araujo, grahamd, Arfrever, v+python, alex, zbysz, skrah, dmalcolm, gz, neologix, Arach, Mark.Shannon, Zhiping.Deng, Huzaifa.Sidhpurwala, PaulMcMillan, fx5 |
2012-01-13 00:08:23 | vstinner | set | messageid: <1326413303.75.0.515940055297.issue13703@psf.upfronthosting.co.za> |
2012-01-13 00:08:23 | vstinner | link | issue13703 messages |
2012-01-13 00:08:23 | vstinner | create | |
|