csprng

package
v0.0.0-...-0daf74e Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSPRNG

type CSPRNG struct {
	// contains filtered or unexported fields
}

func (*CSPRNG) DeriveCipher

func (rng *CSPRNG) DeriveCipher() (c cipher.AEAD, err error)

func (*CSPRNG) Duration

func (rng *CSPRNG) Duration(shorterThan time.Duration) (val time.Duration, err error)

func (*CSPRNG) Read

func (rng *CSPRNG) Read(buf []byte) (n int, err error)

func (*CSPRNG) UInt16

func (rng *CSPRNG) UInt16() (val uint16, err error)

Jump to

Keyboard shortcuts

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