From 6eeae74519b8984e4c70b2b0e7b3eada3121bbfc Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Wed, 18 Sep 2019 14:20:35 -0700 Subject: [PATCH] third fix for pw generation --- bitcoind.run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoind.run b/bitcoind.run index 640ba46..8f0abd3 100644 --- a/bitcoind.run +++ b/bitcoind.run @@ -3,7 +3,7 @@ export HOME="/var/lib/bitcoind" # gen random pw for rpc server -RANDOMPW=$(tr -dc 'a-f0-9' < /dev/urandom | head -c20) +RANDOMPW=$(openssl rand -hex 20) cat < $HOME/bitcoin.conf rpcuser=${BITCOIND_RPCUSER:-rpcuser}