Documentation
¶
Overview ¶
Package deterministic_random owns the implementation details of the centralized reproducible gameplay random stream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source wraps the existing x/exp/rand stream and records source consumption so snapshots can restore the exact next value.
func (*Source) Reset ¶
Reset returns this source to the beginning of seed's sequence while keeping the pointer stable for systems that share the centralized gameplay stream.
Click to show internal directories.
Click to hide internal directories.