mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Merge branch 'master' into editor-hitobject-overlays
This commit is contained in:
@ -10,7 +10,7 @@ namespace osu.Game.Rulesets.Mania.MathUtils
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal class FastRandom
|
internal class FastRandom
|
||||||
{
|
{
|
||||||
private const double uint_to_real = 1.0 / (uint.MaxValue + 1.0);
|
private const double int_to_real = 1.0 / (int.MaxValue + 1.0);
|
||||||
private const uint int_mask = 0x7FFFFFFF;
|
private const uint int_mask = 0x7FFFFFFF;
|
||||||
private const uint y = 842502087;
|
private const uint y = 842502087;
|
||||||
private const uint z = 3579807591;
|
private const uint z = 3579807591;
|
||||||
@ -65,7 +65,7 @@ namespace osu.Game.Rulesets.Mania.MathUtils
|
|||||||
/// Generates a random double value within the range [0, 1).
|
/// Generates a random double value within the range [0, 1).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The random value.</returns>
|
/// <returns>The random value.</returns>
|
||||||
public double NextDouble() => uint_to_real * NextUInt();
|
public double NextDouble() => int_to_real * Next();
|
||||||
|
|
||||||
private uint bitBuffer;
|
private uint bitBuffer;
|
||||||
private int bitIndex = 32;
|
private int bitIndex = 32;
|
||||||
|
@ -143,7 +143,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
Alpha = 0.5f,
|
Alpha = 0.5f,
|
||||||
Size = new Vector2(0.96f)
|
Size = new Vector2(0.96f)
|
||||||
},
|
},
|
||||||
new BufferedContainer
|
new Container
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
|
Reference in New Issue
Block a user