Formatting
This commit is contained in:
parent
e96fded8ff
commit
0eacc92a45
1
main.go
1
main.go
@ -59,7 +59,6 @@ func main() {
|
|||||||
mathrand.Seed(int64(binary.LittleEndian.Uint64(b[:])))
|
mathrand.Seed(int64(binary.LittleEndian.Uint64(b[:])))
|
||||||
|
|
||||||
// Assign every slot of pass to a random allowedCharacter
|
// Assign every slot of pass to a random allowedCharacter
|
||||||
|
|
||||||
for i := range pass {
|
for i := range pass {
|
||||||
// Generate a random int greater than 0 and not to exceed the length of allowedCharacters
|
// Generate a random int greater than 0 and not to exceed the length of allowedCharacters
|
||||||
index, err := cryptorand.Int(cryptorand.Reader, big.NewInt(int64(len(allowedCharacters))))
|
index, err := cryptorand.Int(cryptorand.Reader, big.NewInt(int64(len(allowedCharacters))))
|
||||||
|
Loading…
Reference in New Issue
Block a user