func TestReadRandom(t *testing.T) { … } func BenchmarkFastrand(b *testing.B) { … } func BenchmarkFastrand64(b *testing.B) { … } func BenchmarkFastrandHashiter(b *testing.B) { … } var sink32 … func BenchmarkFastrandn(b *testing.B) { … } //go:linkname fastrand runtime.fastrand func fastrand() uint32 //go:linkname fastrandn runtime.fastrandn func fastrandn(uint32) uint32 //go:linkname fastrand64 runtime.fastrand64 func fastrand64() uint64 func TestLegacyFastrand(t *testing.T) { … }