소스 검색

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 년 전
부모
커밋
894fd4616c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {