1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:52:55 +08:00

Rename NextUlong -> NextULong

This commit is contained in:
smoogipoo 2020-12-02 12:59:45 +09:00
parent 588a5c2aff
commit 2de3e655e0

View File

@ -33,7 +33,7 @@ namespace osu.Game.Utils
/// The series number.
/// Different values are computed for the same seed in different series.
/// </param>
public static ulong NextUlong(int seed, int series = 0)
public static ulong NextULong(int seed, int series = 0)
{
unchecked
{
@ -60,7 +60,7 @@ namespace osu.Game.Utils
{
if (maxValue <= 0) throw new ArgumentOutOfRangeException(nameof(maxValue));
return (int)(NextUlong(seed, series) % (ulong)maxValue);
return (int)(NextULong(seed, series) % (ulong)maxValue);
}
/// <summary>
@ -74,6 +74,6 @@ namespace osu.Game.Utils
/// Different values are computed for the same seed in different series.
/// </param>
public static float NextSingle(int seed, int series = 0) =>
(float)(NextUlong(seed, series) & ((1 << 24) - 1)) / (1 << 24); // float has 24-bit precision
(float)(NextULong(seed, series) & ((1 << 24) - 1)) / (1 << 24); // float has 24-bit precision
}
}