mirror of
https://github.com/safing/portbase
synced 2026-05-05 07:20:06 +00:00
Clean up random package, move config registering from init to prep phase
This commit is contained in:
parent
78aa2f3986
commit
7ea7b5ed40
5 changed files with 75 additions and 53 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue