Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicated random attachments #17

Open
William-Rohm opened this issue Aug 5, 2015 · 1 comment
Open

duplicated random attachments #17

William-Rohm opened this issue Aug 5, 2015 · 1 comment
Assignees

Comments

@William-Rohm
Copy link
Contributor

  1. Create a set of attachment files, say Att1.txt through Att5.txt
  2. Create a MailSend operation with a RandomAttachments value of 5
  3. Create a sequence that calls that op 10 times

All the sent messages will have the correct number (5) of attachments. However, some of the messages will have duplicated attachments, where a given attachment file is included more than once.

@v-am
Copy link
Contributor

v-am commented Aug 14, 2015

Random attachments are selected by picking a "random" number from the specified range (in this case [0 - 4]). With a small range it's very likely the same number will be selected more than once.

If it's important for all attachments to be unique, better alternative might be an explicit set of attachments in the operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants