Parcourir la source

Use a less unusual looking random number seed when testing.

I can't remember why we used 27354294 in the first place, but every time
I see that magic number now, I stop to wonder why it's that particular
value. Instead, just use 1. It's less distracting.
Nigel Tao il y a 10 ans
Parent
commit
894fd4616c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      snappy_test.go

+ 1 - 1
snappy_test.go

@@ -54,7 +54,7 @@ func TestSmallCopy(t *testing.T) {
 }
 
 func TestSmallRand(t *testing.T) {
-	rng := rand.New(rand.NewSource(27354294))
+	rng := rand.New(rand.NewSource(1))
 	for n := 1; n < 20000; n += 23 {
 		b := make([]byte, n)
 		for i := range b {