diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -169,11 +169,10 @@ int main(int argc, char* argv[]) { i++; } - // Ensure at least one character set was specified - if(chars[0] == '\0') { - printf("Must specify at least one character set\n"); - return 0; - } + // If no charset was specified, use standard ascii 33 - 126 chars, which + // includes english lower case, upper case, numbers, and some symbols. + if(chars[0] == '\0') + count += intrcat(chars, 33, 126); // Get the random data seed clock_gettime(CLOCK_REALTIME, &ts); |