rand

package
v0.0.0-...-02e3eee Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0, LGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustReadBytes

func MustReadBytes(dst []byte)

MustReadBytes reads random bytes into dst and fails if anything out of the ordinary happens.

func RandomizeBytes

func RandomizeBytes(dst []byte) []byte

RandomizeBytes reads `len(dst)` random bytes, then returns `dst`. It will panic on any kind of failure reading random bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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