A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-January/115272.html below:

[Python-Dev] RNG in the core

[Python-Dev] RNG in the core [Python-Dev] RNG in the coreSteven D'Aprano steve at pearwood.info
Tue Jan 3 21:29:10 CET 2012
Christian Heimes wrote:
[...]
> I propose an addition to the current Python C API:
> 
> int PyOS_URandom(char *buf, Py_ssize_t len)
> 
> Read "len" chars from the OS's RNG into the pre-allocated buffer "buf".
> The RNG should be suitable for cryptography.

> Since some platforms may not have /dev/urandom, we need a PRNG in the
> core, too. I therefore propose to move the Mersenne twister from
> randommodule.c into the core, too.

Mersenne twister is not suitable for cryptography.

http://en.wikipedia.org/wiki/Mersenne_twister



-- 
Steven
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4