Lines Matching refs:s
73 struct randint_source *s = xmalloc (sizeof *s); in randint_new() local
74 s->source = source; in randint_new()
75 s->randnum = s->randmax = 0; in randint_new()
76 return s; in randint_new()
93 randint_get_source (struct randint_source const *s) in randint_get_source() argument
95 return s->source; in randint_get_source()
114 randint_genmax (struct randint_source *s, randint genmax) in randint_genmax() argument
116 struct randread_source *source = s->source; in randint_genmax()
117 randint randnum = s->randnum; in randint_genmax()
118 randint randmax = s->randmax; in randint_genmax()
161 s->randnum = s->randmax = 0; in randint_genmax()
183 s->randnum = randnum / choices; in randint_genmax()
184 s->randmax = excess_choices / choices; in randint_genmax()
199 randint_free (struct randint_source *s) in randint_free() argument
201 explicit_bzero (s, sizeof *s); in randint_free()
202 free (s); in randint_free()
209 randint_all_free (struct randint_source *s) in randint_all_free() argument
211 int r = randread_free (s->source); in randint_all_free()
213 randint_free (s); in randint_all_free()