aboutsummaryrefslogtreecommitdiff
path: root/bin/mktd
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-03 17:57:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-03 18:03:38 +1200
commit8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c (patch)
tree9323cf3529ba1c809beed46256889b8ee88c6d0d /bin/mktd
parentAllow numerator and denominator in myb(1) (diff)
downloaddotfiles-8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c.tar.gz
dotfiles-8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c.zip
Add rnds(1)
Low-quality random seed attempt.
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"