mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-03 14:09:33 +03:00
Use std::random functions for test and samples RNG.
These standard functions are much more powerful than the C random() routines. Use them to improve the random utils, and use a class to clean things up further. This fixes a problem I was having using random_utils where I was having trouble generating random 32 bit unsigned integers. BUG=angleproject:1290 Change-Id: I5081764053d0667a4e323553b7dea531256aa778 Reviewed-on: https://chromium-review.googlesource.com/323440 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Tryjob-Request: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Tested-by: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
@@ -30,8 +30,6 @@ SampleApplication::SampleApplication(const std::string &name,
|
||||
|
||||
// Disable vsync
|
||||
mEGLWindow->setSwapInterval(0);
|
||||
|
||||
angle::RandomInitFromTime();
|
||||
}
|
||||
|
||||
SampleApplication::~SampleApplication()
|
||||
|
||||
Reference in New Issue
Block a user