srandom(time(NULL));
If cookie
in struct pw_core_info
is supposed to be "random" as the text in src/pipewire/core.h
suggests,
srandom(time(NULL)); random();
is not the way to do it.
For example, getrandom
syscall was introduced in 2014. man 2 getrandom
for more information.