项目作者: pragmagic

项目描述 :
ISAAC PRNG implementation on Nim
高级语言: Nim
项目地址: git://github.com/pragmagic/isaac.git
创建时间: 2016-09-15T17:57:20Z
项目社区:https://github.com/pragmagic/isaac

开源协议:Other

下载


isaac

Nim implementation of ISAAC -
a cryptographically secure PRNG.

API:

  1. type IsaacGenerator* = ref object
  2. proc newIsaacGenerator*(seed: array[256, uint32]): IsaacGenerator
  3. ## Initializes and returns ISAAC PRNG instance.
  4. ## Make sure the seed is an array of *true random values* obtained from a
  5. ## source like urandom. Otherwise, security of the algorithm is compromised.
  6. proc nextU32*(generator: IsaacGenerator): uint32
  7. ## Returns the next generated 32-bit value
  8. proc randomUint32*(generator: IsaacGenerator): uint32
  9. ## 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.