+function generate_hashes() {
+ while read -r hash;do
+ echo -n $'\r'"Generating salt $((keys_generated += 2))/$keys_needed" >&2
+ echo "openssl-dgst $hash $(head -c "$hash_salt_size" "$random_source" | base64 --wrap=0 ) $(head -c "$hash_salt_size" "$random_source" | base64 --wrap=0 )"
+ done < <( IFS=$'\n'; shuf <<< "${hashes[*]}"; )
+}
+