]> git.scottworley.com Git - overonion/commitdiff
Skip the sleep; rely on /dev/random to block.
authorScott Worley <scottworley@scottworley.com>
Sun, 22 Oct 2017 00:14:18 +0000 (17:14 -0700)
committerScott Worley <scottworley@scottworley.com>
Sun, 22 Oct 2017 00:14:18 +0000 (17:14 -0700)
overonion-make-key

index 3b0289f6bde217e2533b3a74c6715261d5f568b7..b909d97ff5d24ea6f5c555329f2a8601742df9ef 100755 (executable)
@@ -30,7 +30,6 @@ fi
 i=0
 while read -r cipher;do
   echo -n $'\r'"Generating key $((++i))/${#ciphers[*]}"
-  sleep 10
   cat >> "$keyfile" <<< "$cipher $(head -c 99 /dev/random | base64 --wrap=0 )"
 done < <( IFS=$'\n'; shuf <<< "${ciphers[*]}"; )
 echo