Don't build arc4random_uniform() if provided by libc.

Reported by:	no@spam@mgedv.net
This commit is contained in:
Christian Weisgerber 2010-05-16 20:05:01 +00:00
parent 7bab43d9de
commit 26bab2a2e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254450

View file

@ -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 */