lundi 31 décembre 2018

A difference between Seed and Rand.Seed

The golang docs says that

Seed, unlike the Rand.Seed method, is safe for concurrent use.

The rand.Seed is actually from math/rand package, but what is Seed? If Seed is another function then it's not present in math/rand so it's unclear from where that function comes from?




Aucun commentaire:

Enregistrer un commentaire