Selaa lähdekoodia

netclient: math.Rand -> crypto.Rand

* add test

Signed-off-by: John Sahhar <[email protected]>
John Sahhar 3 vuotta sitten
vanhempi
commit
1de4872cc3
1 muutettua tiedostoa jossa 0 lisäystä ja 5 poistoa
  1. 0 5
      logic/accesskeys.go

+ 0 - 5
logic/accesskeys.go

@@ -243,11 +243,6 @@ func GenKey() string {
 	return entropy.Text(16)[:16]
 }
 
-func GenId() string {
-	entropy, _ := rand.Int(rand.Reader, maxentropy)
-	return entropy.Text(16)[:23]
-}
-
 func getAllAccessKeys() []models.AccessKey {
 	var accesskeys = make([]models.AccessKey, 0)
 	networks, err := GetNetworks()