Created
November 12, 2014 01:25
-
-
Save DinisCruz/2a02ef30bb0398ffc62e to your computer and use it in GitHub Desktop.
Create list of all alphabetic chars (for fuzzing)
This file contains 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 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