random

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(secure bool, seed int64) rand.Source

New returns a new rand.Source.

Types

type CryptoRandSource

type CryptoRandSource struct{}

CryptoRandSource represents a source of uniformly-distributed random int64 values in the range [0, 1<<63).

func (CryptoRandSource) Int63

func (CryptoRandSource) Int63() int64

Int63 returns a non-negative random 63-bit integer as an int64 from CryptoRandSource.

func (CryptoRandSource) Seed

func (CryptoRandSource) Seed(int64)

Seed is a fake implementation for rand.Source interface from math/rand.

Jump to

Keyboard shortcuts

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