25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Use dollar notation instead of legacy backticked

This commit is contained in:
Badlop 2021-12-23 11:16:06 +01:00
parent cde089ce9c
commit d8be168cff

View File

@ -21,7 +21,7 @@ if test -n ${BASH_VERSION:-''} ; then
R=$RANDOM R=$RANDOM
} }
else else
for n in `od -A n -t u2 -N 48 /dev/urandom`; do RL="$RL$n "; done for n in $(od -A n -t u2 -N 48 /dev/urandom); do RL="$RL$n "; done
get_random () get_random ()
{ {
R=${RL%% *} R=${RL%% *}