summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-15 21:07:33 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-15 21:08:06 +0200
commit64761a9ca64bef2f6513096e9b8719bc6146e94f (patch)
tree105881f92dafa1d5e421bb0e0a14ae34e2b11c8c /tests/scripts
parentb94d58f1bf2e10762017a780c35d0e44d50a4a64 (diff)
downloadgnutls-64761a9ca64bef2f6513096e9b8719bc6146e94f.tar.gz
tests: use the PID number in RPORT
The shell's RANDOM isn't that random.
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/common.sh2
1 files changed, 1 insertions, 1 deletions
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