ironseed_stream: Ironseed output seed sequences

View source: R/stream.R

ironseed_streamR Documentation

Ironseed output seed sequences

Description

Output sequences of 32-bit seeds are generated from an ironseed using multilinear hashes. The coefficients for these hashes are generated by a different Weyl sequence from the input hashes. A hash finalizer is also used to mix bits and improve observed randomness.

  • create_seedseq() uses an ironseed to generate a sequence of 32-bit seeds.

  • ironseed_stream() returns a function that can be used to generate a seed sequence iteratively.

Usage

ironseed_stream(..., methods = c("dots", "args", "env", "auto", "null"))

create_seedseq(fe, n)

Arguments

...

objects

methods

a character vector.

fe

an ironseed

n

a scalar integer specifying the number of seeds to generate

Value

an integer vector containing 32-bit output seeds. If n is missing, ironseed_stream() returns the underlying ironseed.

See Also

ironseed

Examples

# Generate 20 seeds from an ironseed
fe <- ironseed("Experiment", 20251031, 1, set_seed = FALSE)
create_seedseq(fe, 20)

# Create a function that can be called multiple times to produce seeds
get_seeds <- ironseed_stream("Experiment", 20251031, 1)

# generate 10 seeds
get_seeds(10)

# generate 10 more seeds
get_seeds(10)

# output the ironseed used for the stream
get_seeds()


ironseed documentation built on Aug. 21, 2025, 5:49 p.m.