Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions rfc3161.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"encoding/asn1"
"errors"
"mime"

"github.com/cryptoballot/entropychecker"
)

// Misc Errors
Expand Down Expand Up @@ -89,15 +87,7 @@ func setMimeTypes() error {
}

func init() {
// Make sure we have sufficient entropy and fail to start if there isn't
// This only works on Linux.
err := entropychecker.WaitForEntropy()
if err != nil && err != entropychecker.ErrUnsupportedOS {
panic(err)
}

err = setMimeTypes()
if err != nil {
if err := setMimeTypes(); err != nil {
panic(err)
}
}