fastrand

package
v1.1.0-beta.0...-5753106 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buf

func Buf(size int) []byte

Buf generates a random string using ASCII characters but avoid separator character. See https://github.com/mysql/mysql-server/blob/5.7/mysys_ssl/crypt_genhash_impl.cc#L435

func Uint32

func Uint32() uint32

Uint32 returns a lock free uint32 value.

func Uint32N

func Uint32N(n uint32) uint32

Uint32N returns, as an uint32, a pseudo-random number in [0,n).

func Uint64N

func Uint64N(n uint64) uint64

Uint64N returns, as an uint64, a pseudo-random number in [0,n).

Types

This section is empty.

Jump to

Keyboard shortcuts

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