From 582bbc4a60f28d7e93c5efeecc1c87b1f0fbf0af Mon Sep 17 00:00:00 2001 From: iacore Date: Sat, 5 Oct 2024 14:49:09 +0000 Subject: [PATCH] cleanup --- core/appapi.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/appapi.go b/core/appapi.go index e328769..d93e6e7 100644 --- a/core/appapi.go +++ b/core/appapi.go @@ -28,18 +28,6 @@ type AppAPICredentials struct { RefreshToken string `json:"refresh_token"` } -// VnPower: This function must be run before any of the generators could be used. -func init() { - // Assert that a cryptographically secure PRNG is available. - // Panic otherwise. - buf := make([]byte, 1) - - _, err := io.ReadFull(rand.Reader, buf) - if err != nil { - panic(fmt.Sprintf("crypto/rand is unavailable: Read() failed with %#v", err)) - } -} - // GenerateRandomBytes returns securely generated random bytes. // It will return an error if the system's secure random // number generator fails to function correctly, in which