Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pragmagic/isaac
ISAAC PRNG implementation on Nim
https://github.com/pragmagic/isaac
cryptography nim random rng
Last synced: 30 minutes ago
JSON representation
ISAAC PRNG implementation on Nim
- Host: GitHub
- URL: https://github.com/pragmagic/isaac
- Owner: pragmagic
- License: other
- Created: 2016-09-15T17:57:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-16T05:27:29.000Z (about 7 years ago)
- Last Synced: 2024-12-04T17:11:40.613Z (about 2 months ago)
- Topics: cryptography, nim, random, rng
- Language: Nim
- Size: 3.91 KB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# isaac
Nim implementation of [ISAAC](http://www.burtleburtle.net/bob/rand/isaacafa.html) -
a cryptographically secure PRNG.API:
```nim
type IsaacGenerator* = ref objectproc 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 valueproc 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](https://github.com/pragmagic/isaac/blob/master/LICENSE) file for details.Copyright (c) 2016 Xored Software, Inc.