auto setup_md5

This commit is contained in:
bol-van
2024-06-13 17:55:33 +03:00
parent 4dd27c848f
commit fd4dc89360
3 changed files with 2 additions and 4 deletions

View File

@@ -277,6 +277,7 @@ replace_char()
setup_md5()
{
[ -n "$MD5" ] && return
MD5=md5sum
exists $MD5 || MD5=md5
}
@@ -285,6 +286,7 @@ random()
{
# $1 - min, $2 - max
local r rs
setup_md5
if [ -c /dev/urandom ]; then
read rs </dev/urandom
else