From 605faef0f010cecd23bdab106c96be47cb82d8d0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 30 Nov 2019 16:39:01 +0000 Subject: [PATCH] pash: Added comment about /dev/urandom --- pash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pash b/pash index 868939d..06ea4c3 100755 --- a/pash +++ b/pash @@ -12,6 +12,9 @@ pw_add() { # # The 'dd' command is then used to read only the desired # password length. + # + # Regarding usage of '/dev/urandom' instead of '/dev/random'. + # See: https://www.2uo.de/myths-about-urandom pass=$(LC_ALL=C tr -dc "${PASH_PATTERN:-_A-Z-a-z-0-9}" < /dev/urandom | dd ibs=1 obs=1 count="${PASH_LENGTH:-50}" 2>/dev/null)