Documentation
¶
Overview ¶
Package qrand provides true random numbers generated from the ANU Quantum Random Numbers Server, https://qrng.anu.edu.au, to which you must have connectivity for true randomness. Randomness from the quantum beyond!!! Fallback to Go's crypto/rand package in the event of no connectivity, but also return a PseudoRandomError.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Attempts int = 2
Attempts is the number of times to retry() the GET request if an error occurs.
var ILength = 10 //Number of "packages" to receive
The way their site's api works...
var ISize = 2 //Number of "items" in those packages
var SleepTime time.Duration = time.Second * 1
SleepTime is the time to wait between retry() attempts.
Functions ¶
Types ¶
type PseudoRandomError ¶
type PseudoRandomError struct{}
PseudoRandomError is the error type returned if no complete interaction with the WebSite occurs and a pseudo-random []byte is returned instead. Check for it with "if _, ok := x.(qrand.PseudoRandomError); ok {..."
func (PseudoRandomError) Error ¶
func (f PseudoRandomError) Error() string