[igt-dev] [PATCH i-g-t 1/1] lib/igt_core: initialize srandom seed on startup

Laguna, Lukasz lukasz.laguna at intel.com
Fri Nov 24 09:04:41 UTC 2023


On 11/23/2023 18:35, Kamil Konieczny wrote:
> 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>
Hi Kamil,
Thanks for review. I've just sent a patch with rb added. Can you please 
merge it?
>> ---
>>   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