summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2008-08-07 22:22:41 +0000
committerache <ache@FreeBSD.org>2008-08-07 22:22:41 +0000
commit714809ddf1353c47264bfd10532b75cd8ad00375 (patch)
tree06240ca14cbbca9cbad8865b2fa30060f8d5d6e2 /usr.bin/make
parent47725620b71b42a9d104c8cf6a6a15a5be4f2748 (diff)
downloadFreeBSD-src-714809ddf1353c47264bfd10532b75cd8ad00375.zip
FreeBSD-src-714809ddf1353c47264bfd10532b75cd8ad00375.tar.gz
Use arc4random_uniform(3)
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index 4389ad0..54bba3f 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -411,7 +411,7 @@ mkfifotemp(char *template)
* them with random characters until there are no more 'X'.
*/
while (ptr >= template && *ptr == 'X') {
- uint32_t rand_num = arc4random() % (sizeof(padchar) - 1);
+ uint32_t rand_num = arc4random_uniform(sizeof(padchar) - 1);
*ptr-- = padchar[rand_num];
}
start = ptr + 1;
OpenPOWER on IntegriCloud