jordanhatcher / SHA256-RNG

A deterministic random number generator based on the SHA256 cryptographic hash function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SHA256-RNG

An easy to use deterministic random number generator built in python that uses the SHA 256 cryptographic hash function as a means to get a sequence of pseudorandom bits. While being based on a cryptographic hash function, it is not guaranteed to be secure as a random number generator. That being said, it performs reasonably well on the DIEHARD test suite.

Installation

No installation is required, just import rng.py and use the classes provided.

About

A deterministic random number generator based on the SHA256 cryptographic hash function.


Languages

Language:Python 100.0%