util/rand_xor: fallback Linux to time-based instead of fixed seed
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 13 Oct 2019 15:09:22 +0000 (16:09 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 16 May 2020 12:05:37 +0000 (12:05 +0000)
commitd76abe98cf15226f25d93e76e383715061ada6f4
tree5676e057866305cc0ed1dce6e52cdfbcc5394a70
parente0ce684aae83bd6c8129cac09dc98823d786b798
util/rand_xor: fallback Linux to time-based instead of fixed seed

When the caller asked for a randomised_seed, we should fall back to the
time-based seed instead of the fixed seed.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2316>
src/util/rand_xor.c