From e46364a6598370b4cdc974bdd6743b291b8cebd0 Mon Sep 17 00:00:00 2001 From: negative-seven <21268649+negative-seven@users.noreply.github.com> Date: Fri, 10 Dec 2021 00:47:12 +0100 Subject: [PATCH] Use slightly better randomization for generating an initial seed --- smb-randomizer/Form.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smb-randomizer/Form.cs b/smb-randomizer/Form.cs index f6e5446..ad65694 100644 --- a/smb-randomizer/Form.cs +++ b/smb-randomizer/Form.cs @@ -20,7 +20,7 @@ public Form() private void RandomSeedButton_Click(object sender, EventArgs e) { - SeedTextBox.Text = ((uint)DateTime.Now.Ticks).ToString(); + SeedTextBox.Text = ((uint)DateTime.Now.Ticks * 1251872821).ToString(); } private void SeedTextBox_TextChanged(object sender, EventArgs e) @@ -50,7 +50,7 @@ private void RandomizeButton_Clicked(object sender, EventArgs e) if (!uint.TryParse(SeedTextBox.Text, out uint unsignedRunSeed)) { // TODO: repeated code - SeedTextBox.Text = ((uint)DateTime.Now.Ticks).ToString(); + SeedTextBox.Text = ((uint)DateTime.Now.Ticks * 1251872821).ToString(); runSeed = (int)uint.Parse(SeedTextBox.Text); } else