Commit f6fd4969 authored by Peter Kasting's avatar Peter Kasting Committed by V8 LUCI CQ

Fix an unused variable warning in release builds.

Bug: chromium:1203071
Change-Id: I32481d9918aa4a86510570dfb4997f7645f0df23
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3226965
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77451}
parent bd137b25
......@@ -54,6 +54,7 @@ RandomNumberGenerator::RandomNumberGenerator() {
DCHECK_EQ(0, result);
result = rand_s(&second_half);
DCHECK_EQ(0, result);
USE(result);
SetSeed((static_cast<int64_t>(first_half) << 32) + second_half);
#elif V8_OS_MACOSX || V8_OS_FREEBSD || V8_OS_OPENBSD
// Despite its prefix suggests it is not RC4 algorithm anymore.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment