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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user