[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-igt-dev
Subject: [igt-dev] [PATCH i-g-t 1/4] tests/kms_concurrent: Actually seed the rng
From: Ville Syrjala <ville.syrjala () linux ! intel ! com>
Date: 2021-02-23 21:09:47
Message-ID: 20210223210950.13515-1-ville.syrjala () linux ! intel ! com
[Download RAW message or body]
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Add the missing srand() call to actually seed the random number
generator.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tests/kms_concurrent.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c
index 573631e0f7ba..bd7416fda760 100644
--- a/tests/kms_concurrent.c
+++ b/tests/kms_concurrent.c
@@ -294,6 +294,8 @@ run_test(data_t *data, enum pipe pipe, igt_output_t *output)
igt_info("Testing resolution with connector %s using pipe %s with seed %d\n",
igt_output_name(output), kmstest_pipe_name(pipe), opt.seed);
+ srand(opt.seed);
+
test_init(data, pipe, n_planes, output);
igt_fork(child, 1) {
--
2.26.2
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic