No description
Find a file
2017-11-16 12:24:39 +07:00
.vscode First version 2016-09-16 00:55:33 +07:00
src Fix to compile with latest Nim devel (0.17.3) 2017-11-16 12:24:39 +07:00
.gitignore First version 2016-09-16 00:55:33 +07:00
isaac.nimble Fix to compile with latest Nim devel (0.17.3) 2017-11-16 12:24:39 +07:00
LICENSE First version 2016-09-16 00:55:33 +07:00
README.md Added randomUint32 proc. Closes #1. 2016-10-10 15:16:07 +07:00

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.