Friendlier int parsing and promotion.

This commit is contained in:
Christoffer Lerno
2022-12-28 00:37:52 +01:00
parent f622b3bd4c
commit f6e798c283
4 changed files with 27 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ struct SimpleRandom
long seed;
}
private const long SIMPLE_RANDOM_MULTIPLIER = 0x5DEECE66Di64;
private const long SIMPLE_RANDOM_MULTIPLIER = 0x5DEECE66D;
private const long SIMPLE_RANDOM_ADDEND = 0xB;
private const long SIMPLE_RANDOM_MASK = (1i64 << 48) - 1;