mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +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