fix seed generation in frame sorter tests

This commit is contained in:
Marten Seemann 2020-06-01 09:59:54 +07:00
parent f54953fb1d
commit 004d372ed6

View file

@ -1401,15 +1401,15 @@ var _ = Describe("frame sorter", func() {
}
Context(fmt.Sprintf("using %s frames", name), func() {
seed := time.Now().UnixNano()
fmt.Fprintf(GinkgoWriter, "Seed: %d\n", seed)
rand.Seed(seed)
var data []byte
var dataLen protocol.ByteCount
var callbacks []callbackTracker
BeforeEach(func() {
seed := time.Now().UnixNano()
fmt.Fprintf(GinkgoWriter, "Seed: %d\n", seed)
rand.Seed(seed)
callbacks = nil
dataLen = 25
if longFrames {