internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(b []byte) []byte

Copy copies b to a new slice.

func Rand

func Rand(size int) []byte

Rand allocates a random byte slice of length size. Panics if crypto/rand returns an error.

func RandRead

func RandRead(rand io.Reader, size int) ([]byte, error)

RandRead allocates a random byte slice of length size. If rand is nil, crypto/rand is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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