mirror of
https://github.com/airwindows/airwindows.git
synced 2026-05-15 14:16:00 -06:00
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/airwindows#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/airwindows/airwindows/pull/31
Author: @x42
Created: 6/1/2021
Status: ❌ Closed
Base:
master← Head:master📝 Commits (2)
85b4e65Replace rand() with realtime-safe pcg-rand #286e42b0cReplace 6 calls to rand() with one📊 Changes
2 files changed (+50 additions, -28 deletions)
View changed files
📝
plugins/LinuxVST/src/Deckwrecka/Deckwrecka.h(+46 -0)📝
plugins/LinuxVST/src/Deckwrecka/DeckwreckaProc.cpp(+4 -28)📄 Description
On unices (Linux and macOS) the call to rand() takes a
lock (preserve global random seed) and is hence not realtime-safe.
On Windows this is less of an issue since rand() uses a thread-local
variable by default. However PCG-rand is still a preferable alternative.
--
NOTE: THIS CODE IS UNTESTED!
Other plugins using rand() should be updated likewise.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.