randsrc

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: BSD-2-Clause Imports: 7 Imported by: 30

README

randsrc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandBytesSrcFromFile

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

func NewRandBytesSrcFromFile

func NewRandBytesSrcFromFile(fname string) RandBytesSrcFromFile

func NewRandBytesSrcFromFileWithSeed added in v0.2.0

func NewRandBytesSrcFromFileWithSeed(fname string, seed []byte) RandBytesSrcFromFile

func (*RandBytesSrcFromFile) Close

func (rs *RandBytesSrcFromFile) Close()

func (*RandBytesSrcFromFile) GetBytes

func (rs *RandBytesSrcFromFile) GetBytes(n int) []byte

func (*RandBytesSrcFromFile) GetString

func (rs *RandBytesSrcFromFile) GetString(n int) string

type RandSrc

type RandSrc interface {
	GetBool() bool
	GetInt8() int8
	GetInt16() int16
	GetInt32() int32
	GetInt64() int64
	GetUint8() uint8
	GetUint16() uint16
	GetUint32() uint32
	GetUint64() uint64
	GetFloat32() float32
	GetFloat64() float64
	GetString(n int) string
	GetBytes(n int) []byte
}

type RandSrcFromFile

type RandSrcFromFile struct {
	RandBytesSrcFromFile
}

func NewRandSrcFromFile

func NewRandSrcFromFile(fname string) *RandSrcFromFile

func NewRandSrcFromFileWithSeed added in v0.2.0

func NewRandSrcFromFileWithSeed(fname string, seed []byte) *RandSrcFromFile

func (*RandSrcFromFile) GetBool

func (rs *RandSrcFromFile) GetBool() bool

func (*RandSrcFromFile) GetFloat32

func (rs *RandSrcFromFile) GetFloat32() float32

func (*RandSrcFromFile) GetFloat64

func (rs *RandSrcFromFile) GetFloat64() float64

func (*RandSrcFromFile) GetInt

func (rs *RandSrcFromFile) GetInt() int

func (*RandSrcFromFile) GetInt16

func (rs *RandSrcFromFile) GetInt16() int16

func (*RandSrcFromFile) GetInt32

func (rs *RandSrcFromFile) GetInt32() int32

func (*RandSrcFromFile) GetInt64

func (rs *RandSrcFromFile) GetInt64() int64

func (*RandSrcFromFile) GetInt8

func (rs *RandSrcFromFile) GetInt8() int8

func (*RandSrcFromFile) GetUint

func (rs *RandSrcFromFile) GetUint() uint

func (*RandSrcFromFile) GetUint16

func (rs *RandSrcFromFile) GetUint16() uint16

func (*RandSrcFromFile) GetUint32

func (rs *RandSrcFromFile) GetUint32() uint32

func (*RandSrcFromFile) GetUint64

func (rs *RandSrcFromFile) GetUint64() uint64

func (*RandSrcFromFile) GetUint8

func (rs *RandSrcFromFile) GetUint8() uint8

Jump to

Keyboard shortcuts

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