1. Victor Stinner
  2. hasard

Source

hasard /

Filename Size Date modified Message
cmake
doc
examples
lib
misc
patches
python
tests
tools
weak
119 B
hgignore: ignore build_doc
318 B
Added tag hasard-1.5 for changeset ef2964a3c8a7
1.3 KB
Update my email address
316 B
BUGS: document SELinux bug
1.1 KB
prepare release of version 1.5
10.6 KB
prepare release of version 1.5
1.8 KB
Import tip (commit 832:d794bb12755c) from http://haypo.hachoir.org/hasard
757 B
rename README to README.rst
3.2 KB
better API: set_backward() and set_forward() instead of set_direction()
5.8 KB
benchmark: test hasard_double_array()
173 B
* Compile with -O3 in release mode
171 B
Import tip (commit 832:d794bb12755c) from http://haypo.hachoir.org/hasard
74 B
Use sphinx to compile the documentation
4.1 KB
better API: set_backward() and set_forward() instead of set_direction()
3.1 KB
release.py: note about conf.py
162 B
if ctypes.util.find_library() fails to find the name of the library, fallback to "libhasard.so"

Hasard library

Hasard is a pseudo-random number generator (PRNG) library. It includes multiple engines (algorithms), examples: Arcfour, Mersenne Twister and Linux /dev/random device. It hides internal details to give a simple API. You don't choose directly the engine but a profile like "fast" or "@secure_blocking": Hasard chooses the best engine and the best seed for you.

Hasard is tested on Linux, FreeBSD and Windows. It is distributed under the BSD license and written in C. A Python binding is also available. The code is well tested by unit tests and the project includes many programs to test the generators quality.

The word "hasard" is the french name for "randomness".

Website: http://hasard.readthedocs.io/