mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
24 lines
451 B
Go
24 lines
451 B
Go
|
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) {
|
||
|
|
||
|
})
|
||
|
}
|