rand

package
v0.0.0-...-5bb0c7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Address uint64
)

Functions

func GetNonceString

func GetNonceString(n int) string

func GetNormalTimestampRandString

func GetNormalTimestampRandString() string

func GetRandFloat32

func GetRandFloat32() float32

func GetRandFloat64

func GetRandFloat64() float64

func GetRandInt

func GetRandInt(min int, max int) int

[min,max)

func GetRandInt32

func GetRandInt32(min int32, max int32) int32

[min,max)

func GetRandInt64

func GetRandInt64(min int64, max int64) int64

[min,max)

func GetRandStringWithTimestamp

func GetRandStringWithTimestamp(epochTime int64) string

func GetShortTimestampRandString

func GetShortTimestampRandString() string

func GetShortTimestampSequenceNo

func GetShortTimestampSequenceNo() uint64

func ParseShortTimestampRandString

func ParseShortTimestampRandString(str string) (int64, uint64, int64)

返回:timeStamp(unix epoch),ip address, random number

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL