Return the seed (key) of the default generator as it was last set.
Reads the 64-bit Philox key from the default Generator object
without advancing its counter. The returned value is the seed that
was last applied via manual_seed or seed.
Returns
intCurrent seed of the default generator. This is the Philox key — a non-negative 63-bit integer.
Notes
initial_seed does not reset or alter the generator state;
it is a pure read. Together with get_rng_state, it forms the
minimal information needed to checkpoint and restore the full
sampling stream:
where is the counter returned by get_rng_state.
Examples
>>> import lucid
>>> lucid.manual_seed(1337)
>>> lucid.initial_seed()
1337