mirror of https://github.com/ppy/osu
Change initial seed to a random number
This commit is contained in:
parent
a141a4e9e6
commit
95040f7edc
|
@ -4,6 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
|
@ -30,7 +31,7 @@ public class OsuModRandom : ModRandom, IApplicableToBeatmap
|
||||||
[SettingSource("Seed", "Seed for the random number generator")]
|
[SettingSource("Seed", "Seed for the random number generator")]
|
||||||
public Bindable<string> Seed { get; } = new Bindable<string>
|
public Bindable<string> Seed { get; } = new Bindable<string>
|
||||||
{
|
{
|
||||||
Value = "0"
|
Value = RNG.Next().ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
public void ApplyToBeatmap(IBeatmap beatmap)
|
public void ApplyToBeatmap(IBeatmap beatmap)
|
||||||
|
|
Loading…
Reference in New Issue