Lines Matching refs:randoms
163 int *randoms, i; in cw_rand_groups() local
170 if((randoms = cw_rand_shaped(charsetlength, shape, length, seed)) == NULL) return(NULL); in cw_rand_groups()
171 for(i = 0; i < length; i++) strncpy(pgroups + i, &charset[*(randoms + i)], 1); in cw_rand_groups()
180 cw_free(randoms); in cw_rand_groups()
194 int *randoms, i; in cw_rand_words() local
197 if((randoms = cw_rand_shaped(wordset, shape, nwords, seed)) == NULL) return(NULL); in cw_rand_words()
199 for(i = 0; i < nwords; i++) length += strlen(cw_words[randoms[i]]) + 2; in cw_rand_words()
203 strcat(pwords, cw_words[*(randoms + i)]); in cw_rand_words()
210 cw_free(randoms); in cw_rand_words()
224 int *randoms, i, ind1, ind2; in cw_rand_calls() local
227 if((randoms = cw_rand_shaped(22720, shape, ncalls, seed)) == NULL) return(NULL); in cw_rand_calls()
230 ind1 = (int) (randoms[i] / 22720); in cw_rand_calls()
231 ind2 = randoms[i] % 22720; in cw_rand_calls()
238 ind1 = (int) (randoms[i] / 22720); in cw_rand_calls()
239 ind2 = randoms[i] % 22720; in cw_rand_calls()
247 cw_free(randoms); in cw_rand_calls()