From 52e7269ea633b7ac3d83d7b5cba9b15c5fbcbef9 Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Sun, 14 Aug 2022 21:28:54 -0400 Subject: misc/random: add xoshiro random number implementation Add xoshiro as a PRNG implementation instead of relying on srand() and rand() from the C standard library. This, in particular, lets us avoid platform-defined behavior with respect to threading. --- libmpv/client.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'libmpv') diff --git a/libmpv/client.h b/libmpv/client.h index 07ab7d44bc..fb10e5e01d 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -152,8 +152,6 @@ extern "C" { * - Using UNIX IPC (off by default) will override the SIGPIPE signal handler, * and set it to SIG_IGN. Some invocations of the "subprocess" command will * also do that. - * - mpv will reseed the legacy C random number generator by calling srand() at - * some random point once. * - mpv may start sub processes, so overriding SIGCHLD, or waiting on all PIDs * (such as calling wait()) by the parent process or any other library within * the process must be avoided. libmpv itself only waits for its own PIDs. -- cgit v1.2.3