Skip to content

Fix get_ports.sh script

Ondřej Surý requested to merge ondrej/fix-get_ports.sh-script into master

There were two errors:

  1. get_random() function was returning random number with leading zeros that could lead the shell to interpret the number as octal value instead of decimal

  2. The calculation of the port was off, it was adding the whole range and not just the min port to the base.

Merge request reports