Removed extra output from PoorMansRandomGenerator
This commit is contained in:
parent
740d5277cc
commit
87cdc8eb98
|
@ -8,7 +8,7 @@
|
||||||
#### OFUNCTIONS FULL SUBSET ####
|
#### OFUNCTIONS FULL SUBSET ####
|
||||||
#### OFUNCTIONS MINI SUBSET ####
|
#### OFUNCTIONS MINI SUBSET ####
|
||||||
_OFUNCTIONS_VERSION=2.3.0-RC1
|
_OFUNCTIONS_VERSION=2.3.0-RC1
|
||||||
_OFUNCTIONS_BUILD=2018100102
|
_OFUNCTIONS_BUILD=2018100103
|
||||||
#### _OFUNCTIONS_BOOTSTRAP SUBSET ####
|
#### _OFUNCTIONS_BOOTSTRAP SUBSET ####
|
||||||
_OFUNCTIONS_BOOTSTRAP=true
|
_OFUNCTIONS_BOOTSTRAP=true
|
||||||
#### _OFUNCTIONS_BOOTSTRAP SUBSET END ####
|
#### _OFUNCTIONS_BOOTSTRAP SUBSET END ####
|
||||||
|
@ -109,7 +109,7 @@ function PoorMansRandomGenerator {
|
||||||
local number
|
local number
|
||||||
|
|
||||||
# Some read bytes can't be used, se we read twice the number of required bytes
|
# Some read bytes can't be used, se we read twice the number of required bytes
|
||||||
dd if=/dev/urandom bs=$digits count=2 | while read -r -n1 char; do
|
dd if=/dev/urandom bs=$digits count=2 2> /dev/null | while read -r -n1 char; do
|
||||||
number=$number$(printf "%d" "'$char")
|
number=$number$(printf "%d" "'$char")
|
||||||
if [ ${#number} -ge $digits ]; then
|
if [ ${#number} -ge $digits ]; then
|
||||||
echo ${number:0:$digits}
|
echo ${number:0:$digits}
|
||||||
|
|
Loading…
Reference in New Issue