From: Tobias Stoeckmann Date: Sat, 28 Mar 2026 15:20:50 +0000 (+0100) Subject: randutils: Remove unused rand_get_number X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=51f460b1e90d0e918240e8f50de24afffd8a1c2e;p=thirdparty%2Futil-linux.git randutils: Remove unused rand_get_number The function is not used anymore. Signed-off-by: Tobias Stoeckmann --- diff --git a/include/randutils.h b/include/randutils.h index a42af9813..fb2449796 100644 --- a/include/randutils.h +++ b/include/randutils.h @@ -9,9 +9,6 @@ #define rand() random() #endif -/* rand() based */ -extern int rand_get_number(int low_n, int high_n); - /* /dev/urandom based with fallback to rand() */ extern int random_get_fd(void); extern int ul_random_get_bytes(void *buf, size_t nbytes); diff --git a/lib/randutils.c b/lib/randutils.c index d6c56a561..3697bf70a 100644 --- a/lib/randutils.c +++ b/lib/randutils.c @@ -46,11 +46,6 @@ static int getrandom(void *buf, size_t buflen, unsigned int flags) THREAD_LOCAL unsigned short ul_jrand_seed[3]; #endif -int rand_get_number(int low_n, int high_n) -{ - return rand() % (high_n - low_n + 1) + low_n; -} - static void crank_random(void) { int i;