Documentation
¶
Index ¶
- func Float64() float64
- func InitRandomSeed()
- func Initialized() bool
- func Int63() int64
- func Int63n(n int64) int64
- func Intn(n int) int
- func New(data []byte) *mathrand.Rand
- func PanicIfProtocolRandNotInitialized()
- func Seed(rng *mathrand.Rand, data []byte)
- func SetSpecificSeed(seed int64)
- func Uint32() uint32
- func Uint64() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRandomSeed ¶
func InitRandomSeed()
func Initialized ¶
func Initialized() bool
func New ¶
New returns a new deterministic PRNG instance seeded from the given data. This is used for consensus-critical operations where deterministic randomness is required.
func PanicIfProtocolRandNotInitialized ¶
func PanicIfProtocolRandNotInitialized()
func SetSpecificSeed ¶
func SetSpecificSeed(seed int64)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.