Created
July 1, 2016 15:21
-
-
Save pieterdv/390ee2e006807b90d32355eff566417c to your computer and use it in GitHub Desktop.
Generate random byte string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = new byte[32]; | |
new Random().NextBytes(b); | |
Console.WriteLine(Convert.ToBase64String(b)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment