Skip to content

PFalkowski/StrongRandom

Repository files navigation

StrongRandom

NuGet version (StrongRandom) Licence (StrongRandom)

System.Random interface implemented with Cryptographically-Secure Pseudo-Random Number Generator. Everywhere you use System.Random, StrongRandom can be used.

Important! Use with caution in security critical scenarios, as the distribution can be somewhat skewed in integer returning method calls and NextDouble(). GetBytes() is direct call to underlying RNG provider and is safe.

Extensions for any Random: NextBool, NextChar, NextString etc. added.

Releases

No releases published

Packages

No packages published

Languages