Browse 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 10 years ago
parent
commit
894fd4616c
1 changed files with 1 additions and 1 deletions
  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) {
 func TestSmallRand(t *testing.T) {
-	rng := rand.New(rand.NewSource(27354294))
+	rng := rand.New(rand.NewSource(1))
 	for n := 1; n < 20000; n += 23 {
 	for n := 1; n < 20000; n += 23 {
 		b := make([]byte, n)
 		b := make([]byte, n)
 		for i := range b {
 		for i := range b {