prysm-pulse/tools/analyzers/cryptorand/testdata/custom_import.go

24 lines
451 B
Go
Raw Normal View History

package testdata
import (
foobar "math/rand"
mathRand "math/rand"
"time"
)
func UseRandNewCustomImport() {
randGenerator := mathRand.New(mathRand.NewSource(time.Now().UnixNano()))
start := uint64(randGenerator.Intn(32))
_ = start
randGenerator = mathRand.New(mathRand.NewSource(time.Now().UnixNano()))
}
func UseWithoutSeeCustomImportd() {
assignedIndex := mathRand.Intn(128)
_ = assignedIndex
foobar.Shuffle(10, func(i, j int) {
})
}