LibCrypto: Fix MB => MiB build issue

This commit is contained in:
Andreas Kling 2020-08-16 16:43:42 +02:00
parent 55bd54f91f
commit b503f74d25
Notes: sideshowbarker 2024-07-19 03:33:44 +09:00

View file

@ -293,7 +293,7 @@ UnsignedBigInteger random_number(const UnsignedBigInteger& min, const UnsignedBi
auto size = range.trimmed_length() * sizeof(u32) + 2;
// "+2" is intentional (see below).
// Also, if we're about to crash anyway, at least produce a nice error:
ASSERT(size < 8 * MB);
ASSERT(size < 8 * MiB);
u8 buf[size];
AK::fill_with_random(buf, size);
UnsignedBigInteger random { buf, size };