[igt-dev] [PATCH i-g-t 1/1] lib/igt_core: initialize srandom seed on startup
Lukasz Laguna
lukasz.laguna at intel.com
Wed Nov 22 12:40:52 UTC 2023
Init seed for random number generator on IGT startup.
Signed-off-by: Lukasz Laguna <lukasz.laguna at intel.com>
---
lib/igt_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 041e4b328..1abe3d337 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1283,6 +1283,7 @@ out:
bind_fbcon(false);
igt_kmsg(KMSG_INFO "%s: executing\n", command_str);
print_version();
+ igt_srandom();
sync();
oom_adjust_for_doom();
--
2.40.0
More information about the igt-dev
mailing list