mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
18 lines
281 B
Go
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())
|
|
}
|
|
}
|