Skip to content

Commit

Permalink
Add readme note about ordering of modifiers (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier committed Apr 7, 2021
1 parent 51bca52 commit eb868fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,6 @@ Benchmark/sethvargo-7 203,914,245 5.73 ns/op

- Randomization uses `math/rand` seeded with the Unix timestamp instead of
`crypto/rand`.
- Ordering of addition of multiple modifiers will make a difference.
For example; ensure you add `CappedDuration` before `WithMaxDuration`, otherwise it may early out too early.
Another example is you could add `Jitter` before or after capping depending on your desired outcome.

0 comments on commit eb868fa

Please sign in to comment.