diff --git a/global-functions b/global-functions index ad9f39e..f02da9e 100644 --- a/global-functions +++ b/global-functions @@ -402,7 +402,9 @@ # generate random 20 chars hex (0-9 and a-f) :set GetRandom20CharHex do={ - :return [ :rndstr length=20 from="0123456789abcdef" ]; + :global EitherOr; + + :return [ :rndstr length=[ $EitherOr [ :tonum $1 ] 20 ] from="0123456789abcdef" ]; } # generate random number