[igt-dev] [PATCH i-g-t 1/1] lib/igt_core: initialize srandom seed on startup
Kamil Konieczny
kamil.konieczny at linux.intel.com
Thu Nov 23 17:35:20 UTC 2023
Hi Lukasz,
On 2023-11-22 at 13:40:52 +0100, Lukasz Laguna wrote:
> Init seed for random number generator on IGT startup.
>
> Signed-off-by: Lukasz Laguna <lukasz.laguna at intel.com>
LGTM
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.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