Lines Matching refs:seed
101 long seed; member
105 extern void *drmRandomCreate(unsigned long seed);
111 void *drmRandomCreate(unsigned long seed) in drmRandomCreate() argument
132 state->seed = seed; in drmRandomCreate()
135 if (state->seed <= 0) state->seed = 1; in drmRandomCreate()
136 if (state->seed >= state->m) state->seed = state->m - 1; in drmRandomCreate()
153 hi = s->seed / s->q; in drmRandom()
154 lo = s->seed % s->q; in drmRandom()
155 s->seed = s->a * lo - s->r * hi; in drmRandom()
156 if (s->seed <= 0) s->seed += s->m; in drmRandom()
158 return s->seed; in drmRandom()
169 static void check_period(long seed) in check_period() argument
175 state = drmRandomCreate(seed); in check_period()
182 seed, count, count); in check_period()