xrand

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package xrand implements pseudo-random helpers for math/rand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRand

func NewRand() *rand.Rand

NewRand returns a seeded rand.Rand instance. The seed is based on the current time and a hash computed from runtime.fastrand64()'s byte sequence.

The returned rand.Rand instance provides pseudo-random numbers and is not suitable for security-sensitive work. See crypto/rand for a cryptographically secure random number generator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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