You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Programs loaded from bytes get a random name assigned if program_name is passed as null, but srand(time(nullptr)) is called before rand() in each call, so two programs loaded in the same second will get the same name.
OS information
No response
Steps taken to reproduce bug
Load two ebpf programs from bytes in the same clock second with program_name null
Expected behavior
The generated unique_name should be unique, or at least more random.
Actual outcome
The generated name is the same because rand gets the same seed.
Additional details
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Programs loaded from bytes get a random name assigned if
program_name
is passed as null, butsrand(time(nullptr))
is called beforerand()
in each call, so two programs loaded in the same second will get the same name.OS information
No response
Steps taken to reproduce bug
program_name
nullExpected behavior
The generated
unique_name
should be unique, or at least more random.Actual outcome
The generated name is the same because rand gets the same seed.
Additional details
No response
The text was updated successfully, but these errors were encountered: