Browse Source

Docker: Use /dev/urandom instead of /dev/random

pull/360/head
Leon Klingele 9 years ago
parent
commit
172ac704e3
No known key found for this signature in database
GPG Key ID: 83AEC0FEBAA5D483
  1. 2
      scripts/docker_entrypoint.sh

2
scripts/docker_entrypoint.sh

@ -6,7 +6,7 @@ randomhex() { @@ -6,7 +6,7 @@ randomhex() {
if [ -z "${size}" ]; then
size=32
fi
local val=$(hexdump -e '4/4 "%08x"' -n${size} /dev/random)
local val=$(hexdump -e '4/4 "%08x"' -n${size} /dev/urandom)
echo ${val}
}

Loading…
Cancel
Save