Revamp crypto/random to feature a feedable CSPRNG

This commit is contained in:
Daniel 2018-08-23 15:01:44 +02:00
parent c9f41a65af
commit 9618ae8f5e
14 changed files with 994 additions and 37 deletions

7
crypto/random/doc.go Normal file
View file

@ -0,0 +1,7 @@
// Package random provides a feedable CSPRNG.
//
// CSPRNG used is fortuna: github.com/seehuhn/fortuna
// By default the CSPRNG is fed by two sources:
// - OS RNG
// - Entropy gathered by context switching
package random