Skip to content

Commit

Permalink
Using /dev/urandom instead of /dev/random
Browse files Browse the repository at this point in the history
  • Loading branch information
pct960 committed Dec 28, 2019
1 parent 3e055ae commit efe24de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions single-node/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -e
YELLOW='\033[1;33m'
NC='\033[0m'

admin_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
postgres_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
mongo_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
admin_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/urandom | head -c 32 ; echo)"
postgres_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/urandom | head -c 32 ; echo)"
mongo_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/urandom | head -c 32 ; echo)"

if [ -e ".env" ]
then
Expand Down
6 changes: 3 additions & 3 deletions single-node/quick_install
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ APISERVER_JAR="api-server-fat.jar"
AUTH_PATH="../authenticator/target"
AUTH_JAR="authenticator-fat.jar"

admin_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
postgres_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
mongo_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/random | head -c 32 ; echo)"
admin_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/urandom | head -c 32 ; echo)"
postgres_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/urandom | head -c 32 ; echo)"
mongo_passwd="$(env LC_ALL=C tr -dc a-zA-Z0-9 < /dev/urandom | head -c 32 ; echo)"

if [ -e ".env" ]
then
Expand Down

0 comments on commit efe24de

Please sign in to comment.