Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 81b30f2494ba232b27c8f2d60962a94e35ef999a
https://github.com/WebKit/WebKit/commit/81b30f2494ba232b27c8f2d60962a94e35ef999a
Author: Yijia Huang <[email protected]>
Date: 2026-02-09 (Mon, 09 Feb 2026)
Changed paths:
M Tools/TestWebKitAPI/Tests/WTF/DragonBoxTest.cpp
Log Message:
-----------
[WTF] Optimize DragonBox test random number generation
https://bugs.webkit.org/show_bug.cgi?id=307388
rdar://170010749
Reviewed by Yusuke Suzuki.
The DragonBox test's randomFloat() creates a new std::random_device and
std::mt19937 generator on every call (130,000 times), causing timeouts
on slower CI machines.
Fix by moving the random number generator to member variables, reusing
them across calls instead of recreating on every invocation.
Canonical link: https://commits.webkit.org/307134@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications