prysm-pulse/crypto/rand/rand_test.go
deepsource-autofix[bot] 531f05d30d
Unused parameter should be replaced by underscore (#9632)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-20 20:51:59 +00:00

25 lines
501 B
Go

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