mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
rand
This commit is contained in:
17
rand/secure_rand_test.go
Normal file
17
rand/secure_rand_test.go
Normal 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())
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user