[fix] rng() now outputs positive int and increased nginx name bucket

- [fix] changed od flag from -i to -d to generate unsigned numbers
 - the param -i can create negative numbers in dash
 - [fix] increased server_names_hash_bucket_size to 64
 - to accommodate for large domain names with (many) subdomains
This commit is contained in:
2020-05-27 16:30:10 -04:00
parent f3d17e931a
commit a3f5fc413f
2 changed files with 4 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ function read_file()
function rng()
{
rng_n=$(od -An -N2 -i < /dev/urandom)
rng_n=$(od -An -N2 -d < /dev/urandom)
echo $rng_n
}