A high performance, cryptographically secure pseudorandom number generator built from ChaCha20. [No security guarentees offered].
Switch branches/tags
Nothing to show
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.
cmd/go-rand
.travis.yml
LICENSE
README.md
example_test.go
rand.go
rand_test.go
shootout_test.go

README.md

go-rand

GoDoc Build Status

A cryptographically secure pseudo-random number generator built from ChaCha20.

There are no security guarantees offered.

Benchmark

BenchmarkCryptoRand-8   	      20	  63222315 ns/op	  16.59 MB/s	[crypto/rand]
BenchmarkMathRand-8     	     500	   2572662 ns/op	 407.58 MB/s	[math/rand]
BenchmarkReader-8       	    2000	    777531 ns/op        1348.60 MB/s	[tmthrgd/go-rand - AVX only]

License

Unless otherwise noted, the go-rand source files are distributed under the Modified BSD License found in the LICENSE file.