summaryrefslogtreecommitdiff
path: root/src/libposixplz
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-04-09 02:28:05 +0000
committerLaurent Bercot <ska@appnovation.com>2022-04-09 02:28:05 +0000
commit4e75b40d8a96c5d51490ddea43566fe8e6d4168c (patch)
tree06358f285c713a7f05297cb7d2826319d6561683 /src/libposixplz
parent1fedaae65b56b8548cdf2d8c26e2becece5fec07 (diff)
downloadskalibs-4e75b40d8a96c5d51490ddea43566fe8e6d4168c.tar.xz
Prepare for 2.12.0.0. librandom revamp.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libposixplz')
-rw-r--r--src/libposixplz/mkfiletemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libposixplz/mkfiletemp.c b/src/libposixplz/mkfiletemp.c
index ac8426c..9db5d0b 100644
--- a/src/libposixplz/mkfiletemp.c
+++ b/src/libposixplz/mkfiletemp.c
@@ -3,7 +3,7 @@
#include <string.h>
#include <errno.h>
-#include <skalibs/surf.h>
+#include <skalibs/random.h>
#include <skalibs/posixplz.h>
int mkfiletemp (char *s, create_func_ref f, mode_t mode, void *data)
@@ -15,7 +15,7 @@ int mkfiletemp (char *s, create_func_ref f, mode_t mode, void *data)
if (xlen < 6) return (errno = EINVAL, -1) ;
do
{
- autosurf_name(s + len - xlen, xlen) ;
+ random_name_early(s + len - xlen, xlen) ;
r = (*f)(s, mode, data) ;
} while (r == -1 && errno == EEXIST) ;
return r ;