-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mythfrontend/galleryviews.cpp: replace floating point random numbers
with fixed point Generating uniformly random floating point values is difficult and most implementations are currently bugged and may return the upper bound when they are supposed to be half open intervals. Instead, scale the `double`s to `uint32_t`s and use uniformly random integers.
- Loading branch information
1 parent
079a8d7
commit d7daab2
Showing
1 changed file
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters