# POSIX sh
randname() {
  {
    date
    who
    ps -ef
    ps auxw
  } 2>&1 | cksum | tr -d ' ' | cut -c1-14
}

# shellcheck disable=SC2034,SC2154
while [ "${i}" -lt 10 ]; do
  tempdir=${TMPDIR:-/tmp}/$(randname)-$$
done
