ActiveLogin / ActiveLogin.Identity

Parsing and validation of Swedish identities such as Personal Identity Number (svenskt personnummer) in .NET.
https://activelogin.net
MIT License
56 stars 9 forks source link

Feature/remove eager initialization in testdata #137

Closed viktorvan closed 4 years ago

viktorvan commented 4 years ago

This PR fixes an issue in the TestData library where the randomizer is eagerly initialized as soon as the library is referenced. It now uses a Lazy value, to only initialize the randomizer when the client first calls the library needing a randomized value.

@PeterOrneholm This was possible related to, but did not fix the issue you where seeing in on Debian in kubernetes. #139

I think this is a useful fix to merge in any case, but do you want to create an issue for your kubernetes issue, so we can reference that in this PR, or are you no longer having that issue?