]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Unsafe KISS RNG
authorFred Morcos <fred.morcos@open-xchange.com>
Fri, 16 Jun 2023 13:20:25 +0000 (15:20 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:23 +0000 (13:28 +0100)
meson.build
meson_options.txt

index 409c6bdd48d848a670958775da813b7ba7680988..8ebc6eb97c40bb744446c860100d154304644846 100644 (file)
@@ -359,6 +359,13 @@ if opt_hardening.enabled() or opt_hardening.auto()
   endforeach
 endif
 
+# Unsafe KISS RNG ------------------------------------------------------------------------
+opt_kiss_rng = get_option('kiss-rng')
+if opt_kiss_rng
+  conf.set('HAVE_KISS_RNG', 1, 'Use the unsafe KISS RNG')
+endif
+summary('Unsafe KISS RNG', opt_kiss_rng, section: 'Configuration')
+
 # Generate config.h ----------------------------------------------------------------------
 config_h = configure_file(configuration: conf, output: 'config.h')
 # summary('Defines', conf.keys(), section: 'Build Configuration') # Meson 0.57
index 63ad84831ede3782a4e76191a2b899e7bfe61f53..a0a160f4282c8cdb483a8a4a16ac37676d818af4 100644 (file)
@@ -1,3 +1,4 @@
 option('lua', type: 'combo', choices: ['auto', 'luajit', 'lua'], value: 'auto', description: 'Which Lua implementation to use')
 option('hardening', type: 'feature', value: 'auto', description: 'Compiler security checks')
 option('fortify-source', type: 'combo', choices: ['auto', 'disabled', '1', '2', '3'], value: '2', description: 'Source fortification level')
+option('kiss-rng', type: 'boolean', value: false, description: 'Use the unsafe KISS RNG')