xrand

package module
v0.0.0-...-d098be9 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesBySeed

func BytesBySeed(seed []byte, size int) []byte

BytesBySeed 基于 seed 返回指定数量的 []byte,主要 seed 中不要包含中文,包含中文请使用 RunesBySeed

func RangeInt64

func RangeInt64(min int64, max int64) (random int64)

func RangeUint64

func RangeUint64(min uint64, max uint64) (random uint64)

func RunesBySeed

func RunesBySeed(seed []rune, size int) []rune

RunesBySeed 基于 seed 返回指定数量的 []rune

Types

type Seed

type Seed struct{}

func (Seed) Alphabet

func (Seed) Alphabet() []byte

func (Seed) AlphabetDigit

func (Seed) AlphabetDigit() []byte

func (Seed) Digit

func (Seed) Digit() []byte

Jump to

Keyboard shortcuts

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