mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Don't build arc4random_uniform() if provided by libc.
Reported by: no@spam@mgedv.net
This commit is contained in:
parent
7bab43d9de
commit
26bab2a2e3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254450
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,10 @@
|
|||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
#if __FreeBSD_version < 800041
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -66,3 +70,5 @@ arc4random_uniform(u_int32_t upper_bound)
|
|||
|
||||
return r % upper_bound;
|
||||
}
|
||||
|
||||
#endif /* __FreeBSD_version */
|
||||
|
|
Loading…
Add table
Reference in a new issue