mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
c69b3f568e
* Move hard-coded constants to global consts * Fixes * Merge branch 'master' into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Comments * Merge refs/heads/master into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Merge refs/heads/master into remove-hard-constants * Merge branch 'master' of github.com:prysmaticlabs/prysm into remove-hard-constants
21 lines
362 B
Go
21 lines
362 B
Go
package testdata
|
|
|
|
import (
|
|
"math/rand"
|
|
mathRand "math/rand"
|
|
"time"
|
|
)
|
|
|
|
func UseRandNew() {
|
|
randGenerator := mathRand.New(rand.NewSource(time.Now().UnixNano()))
|
|
start := uint64(randGenerator.Intn(32))
|
|
_ = start
|
|
|
|
randGenerator = rand.New(rand.NewSource(time.Now().UnixNano()))
|
|
}
|
|
|
|
func UseWithoutSeed() {
|
|
assignedIndex := rand.Intn(128)
|
|
_ = assignedIndex
|
|
}
|