Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2016 19:24:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 215422] bhnd.ko does not build reproducibly
Message-ID:  <bug-215422-8-6KwoSq82sJ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-215422-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-215422-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215422

--- Comment #2 from Ed Maste <emaste@freebsd.org> ---
lidl@ noted the use of srand(), used to select the qsort pivot. The output =
is
reproducible for me with the following diff:

diff --git a/sys/dev/bhnd/tools/nvram_map_gen.awk
b/sys/dev/bhnd/tools/nvram_map_gen.awk
index 834bd1f..74fa58f 100755
--- a/sys/dev/bhnd/tools/nvram_map_gen.awk
+++ b/sys/dev/bhnd/tools/nvram_map_gen.awk
@@ -52,9 +52,6 @@ function main(_i) {
                AWK_REQ_HEX_PARSING=3D1
        }

-       # Seed rand()
-       srand()
-
        # Output type
        OUT_T =3D null
        OUT_T_HEADER =3D "HEADER"

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215422-8-6KwoSq82sJ>