mathrand_test.go (184B)
1 package yuid 2 3 import "testing" 4 5 func BenchmarkMathRand_Read(b *testing.B) { 6 r := InsecureSource{} 7 8 b.ResetTimer() 9 for i := 0; i < b.N; i++ { 10 _, _ = r.Read(make([]byte, 256)) 11 } 12 }
![]() | yuidA small, unique, URL-safe ID generator written in Go. |
git clone git://git.lair.cx/yuid | |
Log | Files | Refs | README | LICENSE |