Searched refs:randint_source (Results 1 – 6 of 6) sorted by relevance
/coreutils/gl/lib/ |
D | randint.h | 33 struct randint_source; 35 void randint_free (struct randint_source *) _GL_ATTRIBUTE_NONNULL (); 36 int randint_all_free (struct randint_source *) _GL_ATTRIBUTE_NONNULL (); 37 struct randint_source *randint_new (struct randread_source *) 40 struct randint_source *randint_all_new (char const *, size_t) 42 struct randread_source *randint_get_source (struct randint_source const *) 44 randint randint_genmax (struct randint_source *, randint genmax) 50 randint_choose (struct randint_source *s, randint choices) in randint_choose()
|
D | randint.c | 41 struct randint_source *ints = randint_all_new (name, SIZE_MAX); in main() 54 struct randint_source struct 70 struct randint_source * 73 struct randint_source *s = xmalloc (sizeof *s); in randint_new() 83 struct randint_source * 93 randint_get_source (struct randint_source const *s) in randint_get_source() 114 randint_genmax (struct randint_source *s, randint genmax) in randint_genmax() 199 randint_free (struct randint_source *s) in randint_free() 209 randint_all_free (struct randint_source *s) in randint_all_free()
|
D | randperm.h | 5 size_t *randperm_new (struct randint_source *, size_t, size_t)
|
D | randperm.c | 160 randperm_new (struct randint_source *r, size_t h, size_t n) in randperm_new()
|
/coreutils/src/ |
D | shuf.c | 173 struct randint_source *s, in read_input_reservoir_sampling() 334 write_random_numbers (struct randint_source *s, size_t count, in write_random_numbers() 353 write_random_lines (struct randint_source *s, size_t count, in write_random_lines() 389 struct randint_source *randint_source; in main() local 543 randint_source = randint_all_new (random_source, in main() 547 if (! randint_source) in main() 556 randint_source, &reservoir); in main() 567 permutation = randperm_new (randint_source, ahead_lines, n_lines); in main() 582 i = write_random_numbers (randint_source, ahead_lines, in main() 585 i = write_random_lines (randint_source, ahead_lines, line, n_lines); in main()
|
D | shred.c | 700 genpattern (int *dest, size_t num, struct randint_source *s) in genpattern() 814 do_wipefd (int fd, char const *qname, struct randint_source *s, in do_wipefd() 956 wipefd (int fd, char const *qname, struct randint_source *s, in wipefd() 1119 struct randint_source *s, struct Options const *flags) in wipefile() 1148 static struct randint_source *randint_source; variable 1156 randint_all_free (randint_source); in clear_random_data() 1246 randint_source = randint_all_new (random_source, SIZE_MAX); in main() 1247 if (! randint_source) in main() 1257 ok &= wipefd (STDOUT_FILENO, qname, randint_source, &flags); in main() 1262 ok &= wipefile (file[i], qname, randint_source, &flags); in main()
|