fuzzing

package
v0.0.0-...-cf7484d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandBigInt

func RandBigInt() *big.Int

RandBigInt returns a random big.Int value

func RandBigIntN

func RandBigIntN(n *big.Int) *big.Int

RandBigIntN returns a random big.Int value in range [0, n)

func RandBigIntRange

func RandBigIntRange(min, max *big.Int) *big.Int

RandBigIntRange returns a random big.Int value within the specified range [min, max]

func RandBool

func RandBool() bool

RandBool returns a random boolean value

func RandBuff

func RandBuff(size int) []byte

func RandFloat32

func RandFloat32() float32

RandFloat32 returns a random float32 value (0.0 to 1.0)

func RandFloat64

func RandFloat64() float64

RandFloat64 returns a random float64 value (0.0 to 1.0)

func RandFloat64Range

func RandFloat64Range(min, max float64) float64

RandFloat64Range returns a random float64 within the specified range [min, max]

func RandHex

func RandHex(maxSize int) string

RandHex produces some random hex data

func RandInt32

func RandInt32() int32

RandInt32 returns a random int32 value

func RandInt64

func RandInt64() int64

RandInt64 returns a random int64 value

func RandIntRange

func RandIntRange(min, max int) int

RandIntRange returns a random integer within the specified range [min, max]

func RandString

func RandString(length int) string

RandString generates a random string of specified length

func RandUint32

func RandUint32() uint32

RandUint32 returns a random uint32 value

func RandUint64

func RandUint64() uint64

RandUint64 returns a random uint64 value

Types

type Mutator

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

func NewMutator

func NewMutator(r *rand.Rand) *Mutator

func (*Mutator) FillBytes

func (m *Mutator) FillBytes(ptr *[]byte)

func (*Mutator) MutateBytes

func (m *Mutator) MutateBytes(ptrB *[]byte)

func (*Mutator) MutateExp

func (m *Mutator) MutateExp(expiration *uint64)

func (*Mutator) MutateRest

func (m *Mutator) MutateRest(rest *[]rlp.RawValue)

Jump to

Keyboard shortcuts

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