diff options
author | Nicholas Tay <nick@windblume.net> | 2022-01-13 23:19:28 +1100 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-01-13 23:19:28 +1100 |
commit | 1414a5667339637ca815dee52a527abb9bcfc528 (patch) | |
tree | ad99cc064060e5438e4e598da5911b7d8adec069 /config.h | |
parent | afd063a3ce9936f5eb1f5fd00fff6423f782994e (diff) | |
download | passgen-1414a5667339637ca815dee52a527abb9bcfc528.tar.gz passgen-1414a5667339637ca815dee52a527abb9bcfc528.tar.bz2 passgen-1414a5667339637ca815dee52a527abb9bcfc528.zip |
Use static buffers for regular password generation
This is probably a micro-optimisation, but since that is partly the
point of this random C project, let's do it :)
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,8 @@ #define DEFAULT_GRAMMAR "Cvccvc!##" +/* Use some static buffers to avoid malloc */ +#define STATIC_BUFFER_SIZE 24 + /* * For vowels: * i, o excluded due to potentially confusing 1/l/i + 0/o |