]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/race/testdata/mop_test.go
[dev.boringcrypto] all: merge master into dev.boringcrypto
[gostls13.git] / src / runtime / race / testdata / mop_test.go
index d05a443f62a7482dbecec8a8eac0200fe9b2878b..0d79091df46676abcb3ec70170cf2c5a74aaa604 100644 (file)
@@ -6,9 +6,9 @@ package race_test
 
 import (
        "bytes"
-       "crypto/sha1"
        "errors"
        "fmt"
+       "hash/crc32"
        "io"
        "os"
        "runtime"
@@ -1936,7 +1936,7 @@ func testRaceRead(t *testing.T, pread bool) {
                        err = nil
                }
        }()
-       h := sha1.New()
+       h := crc32.New(crc32.MakeTable(0x12345678))
        for b := range in {
                h.Write(b)
        }