mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
parent
0dad70eb48
commit
9a6888486f
1 changed files with 2 additions and 2 deletions
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <sys/random.h>
|
||||
|
||||
#include <spa/debug/types.h>
|
||||
|
||||
|
|
@ -404,8 +405,7 @@ struct pw_impl_core *pw_context_create_core(struct pw_context *context,
|
|||
this->info.user_name = pw_get_user_name();
|
||||
this->info.host_name = pw_get_host_name();
|
||||
this->info.version = pw_get_library_version();
|
||||
srandom(time(NULL));
|
||||
this->info.cookie = random();
|
||||
getrandom(&this->info.cookie, sizeof(this->info.cookie), 0);
|
||||
this->info.name = name;
|
||||
spa_hook_list_init(&this->listener_list);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue