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
+3 -3
View File
@@ -30,10 +30,10 @@ func TestRandomString(t *testing.T) {
}
}
func TestRandomInt64(t *testing.T) {
ints := make([]int64, 1000)
func TestRandomUint64(t *testing.T) {
ints := make([]uint64, 1000)
for i := range ints {
ints[i] = Int64()
ints[i] = Uint64()
for j := range ints {
if i == j {
continue