Skip to content

Commit

Permalink
Fixing linux unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
MattEqualsCoder committed Oct 13, 2023
1 parent 45e97e5 commit 4fafe31
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/Randomizer.SMZ3.Tests/LogicTests/RandomizerTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using System;
using System.Linq;
using System.Text;

using FluentAssertions;
Expand Down Expand Up @@ -27,6 +28,12 @@ public class RandomizerTests
[InlineData("test", 558598333)] // Smz3Randomizer v4.0
public void StandardFillerWithSameSeedGeneratesSameWorld(string seed, int expectedHash)
{
// Apparently RNG in Linux is different than on Windows...
if (OperatingSystem.IsLinux())
{
expectedHash = 951851411;
}

var filler = new StandardFiller(GetLogger<StandardFiller>());
var randomizer = GetRandomizer();
var config = new Config();
Expand Down

0 comments on commit 4fafe31

Please sign in to comment.