1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2022-06-07 10:56:52 +08:00
parent 2728dcafeb
commit f36b4fabd6
7 changed files with 315 additions and 100 deletions

17
rand/secure_rand_test.go Normal file
View File

@ -0,0 +1,17 @@
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())
}
}