1
0
Fork 0

Adding upstream version 2.41.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-21 11:26:35 +02:00
parent 9586bb3c92
commit c36e531662
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
3661 changed files with 2164106 additions and 0 deletions

20
include/randutils.h Normal file
View file

@ -0,0 +1,20 @@
/*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef UTIL_LINUX_RANDUTILS
#define UTIL_LINUX_RANDUTILS
#ifdef HAVE_SRANDOM
#define srand(x) srandom(x)
#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);
extern const char *random_tell_source(void);
#endif