1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
Files
go-mixed/rand/secure_rand_test.go
2022-06-07 10:56:52 +08:00

18 lines
281 B
Go

package rand
import "testing"
func TestSecureInt63n(t *testing.T) {
r := NewSecureRandGenerator()
for i := 0; i < 100; i++ {
t.Log(r.Int63n(100000))
}
}
func TestSecureInt63(t *testing.T) {
r := NewSecureRandGenerator()
for i := 0; i < 100; i++ {
t.Log(r.Int63())
}
}