mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-03-05 04:25:05 +02:00
* gl/lib/randperm.c: Include randperm.h first, since it’s the API. Include stdint.h, count-leading-zeros.h, verify.h. (floor_lg): Rename from ceil_log (which was not actually implementing the ceiling!) and implement the floor using count_leading_zeros. (randperm_bound): Use floor_lg, not ceil_log. Use uintmax_t instead of size_t in case the size gets large on a 32-bit host. * gl/modules/randperm (Depends-on): Add count-leading-zeros, stdint.
28 lines
269 B
Plaintext
28 lines
269 B
Plaintext
Description:
|
|
Generate random permutations.
|
|
|
|
Files:
|
|
lib/randperm.c
|
|
lib/randperm.h
|
|
|
|
Depends-on:
|
|
count-leading-zeros
|
|
randint
|
|
stdint
|
|
xalloc
|
|
hash
|
|
|
|
configure.ac:
|
|
|
|
Makefile.am:
|
|
lib_SOURCES += randperm.c randperm.h
|
|
|
|
Include:
|
|
"randperm.h"
|
|
|
|
License:
|
|
GPL
|
|
|
|
Maintainer:
|
|
Paul Eggert
|