Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
++++++++++++++
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.org/


Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.