aboutsummaryrefslogtreecommitdiff
path: root/bin/mktd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mktd')
-rwxr-xr-xbin/mktd3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/mktd b/bin/mktd
index 657ec31f..2a8f0e56 100755
--- a/bin/mktd
+++ b/bin/mktd
@@ -1,5 +1,6 @@
#!/bin/sh
# Try to make a random temp directory
-dn=${TMPDIR:-/tmp}/${1:-mktd}.$$.$(rndi 1 2147483648)
+seed=$(rnds)
+dn=${TMPDIR:-/tmp}/${1:-mktd}.$$.$(rndi 1 2147483648 "$seed")
mkdir -m 700 -- "$dn" || exit 1
printf '%s\n' "$dn"