iterator

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpGenerator

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

func NewIterator

func NewIterator(opts *statute.ScannerOptions) *IpGenerator

func (*IpGenerator) NextBatch

func (g *IpGenerator) NextBatch() ([]netip.Addr, error)

type LCG

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

LCG represents a linear congruential generator with full period.

func NewLCG

func NewLCG(size *big.Int) *LCG

NewLCG creates a new LCG instance with a given size.

func (*LCG) Next

func (lcg *LCG) Next() *big.Int

Next generates the next number in the sequence.

Jump to

Keyboard shortcuts

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