Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created November 12, 2014 01:25
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 DinisCruz/2a02ef30bb0398ffc62e to your computer and use it in GitHub Desktop.
Save DinisCruz/2a02ef30bb0398ffc62e to your computer and use it in GitHub Desktop.
Create list of all alphabetic chars (for fuzzing)
var fuzzlist = new List<String>();
Action<string, int> builtList = null;
builtList =
(prefix, depth)=>
{
--depth;
for (var letter = 'a'; letter <= 'z'; letter++)
{
var current = prefix + letter;
fuzzlist.add(current);
if (depth > 0)
builtList(current,depth);
}
};
builtList("", 3);
return fuzzlist.size();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment