From 22ade138c4e83b7c0b0c702c38c0ca00a9948d4b Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 26 Aug 2026 15:16:23 +0200 Subject: Replace the placeholder with a suckless C rg. rg prints n cryptographically random strings of length l, matching rg.veltar.systems. Bytes come from getrandom(2) on Linux and rand_s on Windows. make selects clang and .exe when OS=Windows_NT. --- config.def.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 config.def.h (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h new file mode 100644 index 0000000..3747be5 --- /dev/null +++ b/config.def.h @@ -0,0 +1,16 @@ +/* See LICENSE file for copyright and license details. */ + +#ifndef VERSION +#define VERSION "1.0" +#endif + +/* alphabet drawn from; change and re-copy to config.h */ +static const char alphabet[] = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; + +static const int defn = 6; /* default number of strings */ +static const int defl = 10; /* default length of each string */ +static const int minn = 1; +static const int maxn = 1000; +static const int minl = 1; +static const int maxl = 256; -- cgit v1.2.3