cmplxs,floats,internal/asm: don't use global rand state

This commit is contained in:
Dan Kortschak
2020-11-27 09:31:05 +10:30
parent cdb9abbe19
commit 8d1ffe1e87
6 changed files with 92 additions and 88 deletions

View File

@@ -137,7 +137,7 @@ func BenchmarkL2NormNetlib(b *testing.B) {
{"L2NormUnitaryNetlib", netlib},
{"L2NormUnitary", L2NormUnitary},
}
x[0] = randomSlice(1, 1)[0] // replace the leading zero (edge case)
x[0] = 4 // replace the leading zero (edge case)
for _, test := range tests {
for _, ln := range []uintptr{1, 3, 10, 30, 1e2, 3e2, 1e3, 3e3, 1e4, 3e4, 1e5} {
b.Run(fmt.Sprintf("%s-%d", test.name, ln), func(b *testing.B) {