Skip to content

Instantly share code, notes, and snippets.

@kadukf
Created April 23, 2020 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kadukf/27c1d070cf7345cc18304b5b0a00dc3c to your computer and use it in GitHub Desktop.
Save kadukf/27c1d070cf7345cc18304b5b0a00dc3c to your computer and use it in GitHub Desktop.
Base64Encoding.Setup
[GlobalSetup]
public void GlobalSetup()
{
var rnd = new Random();
_guid = Guid.NewGuid();
var buffer = new byte[DataLen];
rnd.NextBytes(buffer);
_part0 = Encoding.UTF8.GetString(buffer);
rnd.NextBytes(buffer);
_part1 = Encoding.UTF8.GetString(buffer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment