mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
531f05d30d
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>
25 lines
501 B
Go
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)
|
|
}
|