dis

package
v0.0.0-...-37de26c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomByte

func RandomByte(length int) []byte

RandomByte returns a random byte array with length

func RandomString

func RandomString(length int) string

RandomString return a random string with length

func SleepRateLinear

func SleepRateLinear(rps float64) int64

SleepRateLinear put the program in sleep state for a certain time sleep time is a linear distribution with rps (rate per second) return the sleep time in micro seconds

func SleepRatePoisson

func SleepRatePoisson(rps float64) int64

SleepRatePoisson put the program in sleep state for a certain time sleep time is a poisson distribution with rps (rate per second) return the sleep time in micro seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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