util/rand_xor: add function to seed rand
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 21 Mar 2017 23:48:57 +0000 (10:48 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 22 Mar 2017 21:16:29 +0000 (08:16 +1100)
commitdd00a3c923ba94986efba2289c1b0e22b7c12c97
tree3932a5a252144042e5eb7ff8f80cecc833656a61
parent53660c23662edb829e6bfd54bcdc0df4688ec62b
util/rand_xor: add function to seed rand

V2: pass the seed to the seed function so that we can isolate
    its uses. Stop leaking fd when urandom couldn't be read.

Reviewed-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_test_dma.c
src/util/rand_xor.c
src/util/rand_xor.h