Skip to content
ISAAC PRNG implementation on Nim
Nim
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
.gitignore
LICENSE
README.md
isaac.nimble

README.md

isaac

Nim implementation of ISAAC - a cryptographically secure PRNG.

API:

type IsaacGenerator* = ref object

proc newIsaacGenerator*(seed: array[256, uint32]): IsaacGenerator
  ## Initializes and returns ISAAC PRNG instance.
  ## Make sure the seed is an array of *true random values* obtained from a
  ## source like urandom. Otherwise, security of the algorithm is compromised.

proc nextU32*(generator: IsaacGenerator): uint32
  ## Returns the next generated 32-bit value

proc randomUint32*(generator: IsaacGenerator): uint32
  ## Alias for ``nextU32``. Added for compatibility with nim-random library.

License

This library is licensed under the MIT license. Read LICENSE file for details.

Copyright (c) 2016 Xored Software, Inc.

You can’t perform that action at this time.