mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-21 08:51:32 +00:00
random dialing
This commit is contained in:
@ -95,6 +95,10 @@ func RandUint64Exp() uint64 {
|
||||
return n
|
||||
}
|
||||
|
||||
func RandFloat32() float32 {
|
||||
return rand.Float32()
|
||||
}
|
||||
|
||||
func RandTime() time.Time {
|
||||
return time.Unix(int64(RandUint64Exp()), 0)
|
||||
}
|
||||
|
Reference in New Issue
Block a user