From a6fbfc8349bf57d31ccd3479f6648f0526110c67 Mon Sep 17 00:00:00 2001 From: Alex Amadori Date: Mon, 20 Feb 2017 17:49:02 +0100 Subject: [PATCH] Using random generator from osu-framework --- osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs b/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs index 52b78267d6..9fad8992d2 100644 --- a/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs +++ b/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using osu.Desktop.VisualTests.Platform; using osu.Framework.Screens.Testing; +using osu.Framework.MathUtils; using osu.Game.Database; using osu.Game.Modes; using osu.Game.Screens.Select; @@ -15,7 +16,6 @@ namespace osu.Desktop.VisualTests.Tests { private BeatmapDatabase db, oldDb; private TestStorage storage; - private Random rnd = new Random(); private PlaySongSelect songSelect; public override string Name => @"Song Select"; @@ -78,9 +78,9 @@ namespace osu.Desktop.VisualTests.Tests { OnlineBeatmapSetID = 1234 + i, // Create random metadata, then we can check if sorting works based on these - Artist = "MONACA " + rnd.Next(0, 9), - Title = "Black Song " + rnd.Next(0, 9), - Author = "Some Guy " + rnd.Next(0, 9), + Artist = "MONACA " + RNG.Next(0, 9), + Title = "Black Song " + RNG.Next(0, 9), + Author = "Some Guy " + RNG.Next(0, 9), }, Beatmaps = new List(new[] {