Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 623 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 623 Bytes

This is a port of ISAAC a fast CSPRNG from C, the original C code (by Bob Jenkins) may be found here http://burtleburtle.net/bob/rand/isaacafa.html.

Usage:

julia>rng = Isaac64(seed)

Will create an instance of Isaac64, note it does not seed itself! If a seed is not specified it will seed with 0's.

julia>seed=sysRandomSeed()

Will return an 256 long array of UInt64 values - On linux this should work by default (reading from "/dev/urandom"), specify sysrand_path to read from a different location.

julia>rand(rng)

returns a single Uint64 value

julia>rand(rng, T)

returns a single value of type T