Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
Changed wait period to be positive only as Random.Next can't handle n…
Browse files Browse the repository at this point in the history
…egative integers, apparently..?
  • Loading branch information
Mircoxi committed Feb 26, 2023
1 parent cb7fdb8 commit b28ae46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scraps/Services/RaffleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public async Task StartAsync()
Broadcast("Waiting to scan again");

System.Random _randomifier = new System.Random();
int _modifier = _randomifier.Next(-30000, 30000); // Adds a 30 second positive or negative delay.
int _modifier = _randomifier.Next(0, 60000); // Adds up to a 60 second delay.

int _scanDelayJittered = _scanDelay + _modifier;

Expand Down

0 comments on commit b28ae46

Please sign in to comment.