Home | History | Annotate | Download | only in utils

Lines Matching full:seed

16     linear equation. Unlike rand(), this class holds its own seed (initially
22 SkLCGRandom(uint32_t seed) : fSeed(seed) {}
132 * Return the current seed. This allows the caller to later reset to the
133 * same seed (using setSeed) so it can generate the same sequence.
137 /** Set the seed of the random object. The seed is initialized to 0 when the
141 void setSeed(int32_t seed) { fSeed = (uint32_t)seed; }
163 SkRandom(uint32_t seed) { init(seed); }
287 void setSeed(uint32_t seed) { init(seed); }
293 void init(uint32_t seed) {
294 fK = NextLCG(seed);
304 static uint32_t NextLCG(uint32_t seed) { return kMul*seed + kAdd; }
307 // For the LCG that sets the initial state from a seed