random

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomInt

func GetRandomInt(max int) (int, error)

GetRandomInt takes an int and returns a cryptographically sourced random integer of type int64 (exclusive of the max int)

func GetRandomIntAddend

func GetRandomIntAddend(min int, max int) (int, error)

GetRandomIntAddend takes a min and max integer and returns a cryptographically secure integer reflecting the difference between those ranges

func NewCryptoSeededSource

func NewCryptoSeededSource() mrand.Source

NewCryptoSeededSource utilizes the cryptographically secure generator to create a seed source

Types

This section is empty.

Jump to

Keyboard shortcuts

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