You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to Go 1.20 the pseudo-random number generator was seeded like Seed(1)
at program startup, but in later releases the generator is seeded randomly.
Since the testcase "typeDef1" uses the "rand" op the testcase output does
not always match the expected file: unit-test/exp/typeDef1.json
This is due to the different random order in Go 1.20+. By setting seed=1,
as previously done by Go itself, we get the same result in all Go version.
- Testcase
"params":
{
"size": 6,
"offset": 0,
"op": "rand",
"list": ["TRex", "Cisco", "Golang"]
}
- Go doc:
https://pkg.go.dev/math/rand@master#Seed
0 commit comments