Clean up random package, move config registering from init to prep phase

This commit is contained in:
Daniel 2019-09-20 10:36:37 +02:00
parent 78aa2f3986
commit 7ea7b5ed40
5 changed files with 75 additions and 53 deletions

View file

@ -55,7 +55,10 @@ func main() {
switch os.Args[1] {
case "fortuna":
random.Start()
err := random.Start()
if err != nil {
panic(err)
}
for {
b, err := random.Bytes(64)