even more minor optimizations, use random now

This commit is contained in:
Asriel Camora
2023-06-21 07:36:43 -07:00
parent 0b2b80d6b5
commit 52ad8a4cb0
4 changed files with 34 additions and 43 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ public sealed class SimulationInput
public int BaseProgressGain { get; }
public int BaseQualityGain { get; }
public SimulationInput(CharacterStats stats, RecipeInfo recipe, int seed)
public SimulationInput(CharacterStats stats, RecipeInfo recipe, int? seed = null)
{
Stats = stats;
Recipe = recipe;
Random = new Random(seed);
Random = seed == null ? new() : new(seed.Value);
// https://github.com/NotRanged/NotRanged.github.io/blob/0f4aee074f969fb05aad34feaba605057c08ffd1/app/js/ffxivcraftmodel.js#L88
{