Skip to content

Commit

Permalink
add random (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
LowEntropyBody committed Dec 6, 2021
1 parent 063356b commit 34b7e4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ config_set_all()
if [ x"$chain_name" == x"" ]; then
chain_name="crust-node"
fi
local tt=$(rand 100000 999999)
chain_name=$chain_name$tt
sed -i "22c \\ name: \"$chain_name\"" $configfile &>/dev/null
log_success "Set crust node name: '$chain_name' successfully"

Expand Down

0 comments on commit 34b7e4d

Please sign in to comment.