freebsdrandom

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 8 Imported by: 0

README

freebsdrandom

it's a tool base on FreeBSD

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongInputNumber = errors.New("freebsdrandom: input is <= 0")
)
View Source
var Reader *reader

Functions

func BigIntn

func BigIntn(n *big.Int) *big.Int

func Bytes

func Bytes(n int) []byte

func Intn

func Intn(n int) (int, error)

Intn user range in [0,n]

func Perm

func Perm(n int) []int

func Read

func Read(b []byte)

func Shuffle

func Shuffle(n int, swap func(i, j int)) error

func Uint64n

func Uint64n(n uint64) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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