random

package
v4.12.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesOrPanic

func BytesOrPanic(length int) []byte

BytesOrPanic returns random bytes of the given length or panics in case of an error.

func HexString

func HexString(length int) (string, error)

HexString returns a random hex-encoded string of the given length in bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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