prysm-pulse/crypto/rand/rand_test.go
terence tsao ee5d75732d
Add pkg crypto (#9603)
* Add pkg crypto

* Update go.yml

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-15 22:55:11 +00:00

25 lines
501 B
Go

package rand
import (
"math/rand"
"testing"
)
func TestNewGenerator(t *testing.T) {
// Make sure that generation works, no panics.
randGen := NewGenerator()
_ = randGen.Int63()
_ = randGen.Uint64()
_ = randGen.Intn(32)
var _ = rand.Source64(randGen)
}
func TestNewDeterministicGenerator(t *testing.T) {
// Make sure that generation works, no panics.
randGen := NewDeterministicGenerator()
_ = randGen.Int63()
_ = randGen.Uint64()
_ = randGen.Intn(32)
var _ = rand.Source64(randGen)
}