Skip to contents

Every worker begins by seeding dqrng with the seed and stream it was handed. This helper performs that call, so a worker can start with set_worker_rng(set_up) instead of unpacking the two vectors by hand.

Usage

set_worker_rng(set_up)

Arguments

set_up

One element of the list returned by make_set_up().

Value

set_up, invisibly.

Examples

set_up <- make_set_up(1234, 100, 4)
set_worker_rng(set_up[[1]])
dqrng::dqrunif(3)
#> [1] 0.12669724 0.83522557 0.02294753