PRNG implementation built-in in your platform.
PRNG implementation built-in in your platform.
A stateful prng definition.
Statefulness is important to ensure:
rnd
is modifying the state of the prng.A stateful prng definition. Statefulness is important to ensure: * Each call to `rnd` is modifying the state of the prng. * it is thread safe to use.
Creates a stateful prng based on a stateless one.
Creates a stateful prng based on a stateless one.
Implements PRNG without state.
Use this protocol to wrap some stateless implementations of a prng
.
To use prng implementing protocol, wraps it again with PrngStatefulImpl
.
Implements PRNG without state. Use this protocol to wrap some stateless implementations of a `prng`. To use prng implementing protocol, wraps it again with `PrngStatefulImpl`.
Prng tests.
Prng tests.
Adapted from https://github.com/hugoduncan/criterium/blob/develop/src/criterium/well.clj
.
Adapted from `https://github.com/hugoduncan/criterium/blob/develop/src/criterium/well.clj`.
PRNG stateless implementation based on xoroshoshiro128
algorithm.
See [xoroshiro128 repo](https://github.com/thedavidmeister/xoroshiro128] for more details.
PRNG stateless implementation based on `xoroshoshiro128` algorithm. See [xoroshiro128 repo](https://github.com/thedavidmeister/xoroshiro128] for more details.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close