mardi 28 mai 2019

crypto/rand generate the same results when running go test multiple times

In go, crypto/rand is cryptographically secure. So why does it generate the same result when I run go test for the same code for multiple times?

Associated code: readLen, err := io.ReadAtLeast(rand.Reader, buff, buffLen) fmt.Println(buff)




Aucun commentaire:

Enregistrer un commentaire