summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2022-08-14 21:28:54 -0400
committerLeo Izen <leo.izen@gmail.com>2022-08-17 10:21:55 -0400
commit52e7269ea633b7ac3d83d7b5cba9b15c5fbcbef9 (patch)
tree89b68afb896b8b50a304b5bc79625775d4ba3252 /libmpv
parent813164cc07124aabfbc4aa3b8f9fe33fe222c77c (diff)
downloadmpv-52e7269ea633b7ac3d83d7b5cba9b15c5fbcbef9.tar.bz2
mpv-52e7269ea633b7ac3d83d7b5cba9b15c5fbcbef9.tar.xz
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.
Diffstat (limited to 'libmpv')
-rw-r--r--libmpv/client.h2
1 files changed, 0 insertions, 2 deletions
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.