github.com/safing/portbase@v0.19.5/rng/doc.go (about)

     1  // Package rng provides a feedable CSPRNG.
     2  //
     3  // CSPRNG used is fortuna: github.com/seehuhn/fortuna
     4  // By default the CSPRNG is fed by two sources:
     5  // - It starts with a seed from `crypto/rand` and periodically reseeds from there
     6  // - A really simple tickfeeder which extracts entropy from the internal go scheduler using goroutines and is meant to be used under load.
     7  //
     8  // The RNG can also be easily fed with additional sources.
     9  package rng