Skip to content

v3.0.1

Choose a tag to compare

@jshergal jshergal released this 23 Oct 13:45
· 18 commits to main since this release
e888550

In this release

  • Added IRandomSource interface used as the random number source internally
  • Added two implementations of IRandomSource
    • SystemRandomSource
    • SecureRandomSource
  • Changed RandomStringGenerator from static class

The change to RandomStringGenerator is a breaking change. Now you must create an instance of the class. The constructor takes an IRandomSource object. You can use one of the two provided random sources or create your own. This provides more flexibility in using the object and allows for more secure random string generation if required.