From 1414a5667339637ca815dee52a527abb9bcfc528 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Thu, 13 Jan 2022 23:19:28 +1100 Subject: 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 :) --- config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 8a3e1c9..45cec00 100644 --- a/config.h +++ b/config.h @@ -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 -- cgit