Skip to content

Commit

Permalink
fixes email off by one #339
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-dupdyke committed May 6, 2024
1 parent 8024b0d commit a9fead5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Ghosts.Client/Infrastructure/Email/EmailConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@ private static List<string> ParseEmail(string raw, int min, int max)
var emails = EmailListManager.GetDomainList();
_log.Trace($"Building domain email list: {emails.Count}...");

for (var i = 0; i <= numberOfRecipients; i++)
for (var i = 0; i < numberOfRecipients; i++)
list.Add(emails.PickRandom());

//add outside
var numberOfOutsideRecipients = rnd.Next(Program.Configuration.Email.RecipientsOutsideMin, Program.Configuration.Email.RecipientsOutsideMax + 1);
var outsideEmails = EmailListManager.GetOutsideList();
_log.Trace($"Building outside email list: {outsideEmails.Count}...");
for (var i = 0; i <= numberOfOutsideRecipients; i++)
for (var i = 0; i < numberOfOutsideRecipients; i++)
list.Add(outsideEmails.PickRandom());
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/Ghosts.Client/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("8.0.0.0")]
[assembly: AssemblyInformationalVersion("8.0.0.0")]
[assembly: AssemblyFileVersion("8.0.16.0")]
[assembly: AssemblyFileVersion("8.0.20.0")]

0 comments on commit a9fead5

Please sign in to comment.