random

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBytes

func GenerateBytes(n int) ([]byte, error)

GenerateBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func GenerateHex

func GenerateHex(bytes int) (string, error)

GenerateHex returns a "byte * 2" hex string after encoding "byte" random bytes in hex

Types

This section is empty.

Source Files

  • random.go

Jump to

Keyboard shortcuts

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