From: Nikos Mavrogiannopoulos Date: Mon, 15 Sep 2014 19:07:33 +0000 (+0200) Subject: tests: use the PID number in RPORT X-Git-Tag: gnutls_3_4_0~935 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64761a9ca64bef2f6513096e9b8719bc6146e94f;p=thirdparty%2Fgnutls.git tests: use the PID number in RPORT The shell's RANDOM isn't that random. --- diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh index 401d290621..2ba11b4af3 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -18,7 +18,7 @@ # along with this file; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -RPORT="$((((RANDOM<<15)|RANDOM) % 63001 + 2000))" +RPORT="$(((($$<<15)|RANDOM) % 63001 + 2000))" fail() { PID=$1