[gnutls-devel] GnuTLS | Add CI tarball build (!809)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Nov 21 21:16:42 CET 2018


Tim Rühsen commented on a discussion on tests/scripts/common.sh:

>  }
>  
>  # Find a port number not currently in use.
> -GETPORT='rc=0; myrandom=$(date +%N | sed s/^0*//)
> +GETPORT='rc=0; unset myrandom
> +    if test -n "$RANDOM"; then myrandom=$(($RANDOM + $RANDOM)); fi
> +    if test -z "$myrandom"; then myrandom=$(date +%N | sed s/^0*//); fi
> +    if test -z "$myrandom"; then myrandom=0; fi

That's a fallback in case we can't get a random value. It means that we try getting an unused port based starting at `PID % 63001 + 2000`, which is IMO quite OK.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/809#note_119183599
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181121/9eea2286/attachment.html>


More information about the Gnutls-devel mailing list