Package workloadimpl provides dependency-light helpers for implementing workload.Generators.
PrecomputedRandInit returns a init function that lazily initializes and returns a PrecomputedRand. This initialization work is done once and the result is shared, subsequent calls to return this shared one. The init function is concurrency safe.
RandStringFast is a non-specialized random string generator with an even distribution of alphabet in the output.
PrecomputedRand is a precomputed sequence of random data in some alphabet.
FillBytes fills the given buffer with precomputed random data, starting at the given offset (which is like a seed) and returning a new offset to be used on the next call. FillBytes is concurrency safe.