]> git.saurik.com Git - apple/libc.git/blobdiff - stdio/FreeBSD/mktemp.c.patch
Libc-825.24.tar.gz
[apple/libc.git] / stdio / FreeBSD / mktemp.c.patch
diff --git a/stdio/FreeBSD/mktemp.c.patch b/stdio/FreeBSD/mktemp.c.patch
deleted file mode 100644 (file)
index 1c3da0c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- mktemp.c.orig      2010-04-08 10:37:06.000000000 -0700
-+++ mktemp.c   2010-04-08 10:40:05.000000000 -0700
-@@ -130,7 +130,7 @@ _gettemp(path, doopen, domkdir, slen)
-       /* Fill space with random characters */
-       while (trv >= path && *trv == 'X') {
--              rand = arc4random_uniform(sizeof(padchar) - 1);
-+              rand = arc4random() % (sizeof(padchar) - 1);
-               *trv-- = padchar[rand];
-       }
-       start = trv + 1;