diff options
author | Timothy Arceri <[email protected]> | 2017-03-22 10:48:57 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-23 08:16:29 +1100 |
commit | dd00a3c923ba94986efba2289c1b0e22b7c12c97 (patch) | |
tree | 3932a5a252144042e5eb7ff8f80cecc833656a61 /src/gallium/drivers/radeon | |
parent | 53660c23662edb829e6bfd54bcdc0df4688ec62b (diff) |
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 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_test_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_test_dma.c b/src/gallium/drivers/radeon/r600_test_dma.c index 8b4149af53c..3c23b093294 100644 --- a/src/gallium/drivers/radeon/r600_test_dma.c +++ b/src/gallium/drivers/radeon/r600_test_dma.c @@ -183,8 +183,7 @@ void r600_test_dma(struct r600_common_screen *rscreen) /* the seed for random test parameters */ srand(0x9b47d95b); /* the seed for random pixel data */ - seed_xorshift128plus[0] = 0x3bffb83978e24f88; - seed_xorshift128plus[1] = 0x9238d5d56c71cd35; + s_rand_xorshift128plus(seed_xorshift128plus, false); iterations = 1000000000; /* just kill it when you are bored */ num_partial_copies = 30; |