lib/rand: Various minor fixes (#6752)

crypto/rand output is cryptographically secure by the Go library
documentation's promise. That, rather than strength (= passes randomness
tests) is the property that Syncthing needs).
This commit is contained in:
greatroar
2020-06-17 10:43:58 +02:00
committed by GitHub
parent cbe0d2fffc
commit 273cc9cef8
4 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -367,7 +367,7 @@ func (i *IndexID) Unmarshal(bs []byte) error {
}
func NewIndexID() IndexID {
return IndexID(rand.Int64())
return IndexID(rand.Uint64())
}
func (f Folder) Description() string {