]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhnd: remove srand() to ensure deterministic output
authorEd Maste <emaste@FreeBSD.org>
Wed, 21 Dec 2016 15:45:23 +0000 (15:45 +0000)
committerEd Maste <emaste@FreeBSD.org>
Wed, 21 Dec 2016 15:45:23 +0000 (15:45 +0000)
commitd941a03b66415ac4bb5ffba2be25222178dd049d
tree977a4c42a483db7bda898dce9c09e04d66dca843
parent8ad81aaea699770fd6828a3f4a396998550ed230
bhnd: remove srand() to ensure deterministic output

r310342 fixed non-deterministic nvram_map_gen.awk output and thus a non-
reproducible bhnd(4) build by using a unique sort key.

Go one step further and also remove the srand() call. There's no reason
we want non-deterministic behaviour from this script.

PR: 215422
Reported by: gjb (non-reproducibility of bhnd)
Reported by: lidl (srand as the cause)
Reviewed by: landonf
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8857
sys/dev/bhnd/tools/nvram_map_gen.awk