aboutsummaryrefslogblamecommitdiff
path: root/bin/mktd
blob: 2a8f0e56a5fd62ed22db3f4623767d36243f45b7 (plain) (tree)
1
2
3
4
5
6

                                     

                                                             

                               
#!/bin/sh
# Try to make a random temp directory
seed=$(rnds)
dn=${TMPDIR:-/tmp}/${1:-mktd}.$$.$(rndi 1 2147483648 "$seed")
mkdir -m 700 -- "$dn" || exit 1
printf '%s\n' "$dn"