Skip to content

Commit

Permalink
Use slightly better randomization for generating an initial seed
Browse files Browse the repository at this point in the history
  • Loading branch information
negative-seven committed Dec 9, 2021
1 parent 01dfbed commit e46364a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smb-randomizer/Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e46364a

Please sign in to comment.