Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Guid CreateCryptographicallySecureGuid()
- {
- using (var provider = new RNGCryptoServiceProvider())
- {
- var bytes = new byte[16];
- provider.GetBytes(bytes);
- return new Guid(bytes);
- }
- }
Add Comment
Please, Sign In to add comment