diff options
author | Mike Pall <mike> | 2020-06-15 12:21:05 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-06-15 12:21:05 +0200 |
commit | a44f53acf53603e7d9b88352de035b1804be4e88 (patch) | |
tree | 940e202e0ca56e0df42860fbc89326e72cdc148d /src/lj_arch.h | |
parent | 34e53736c6ed90dc56357aff22009e88b443ecfd (diff) | |
download | luajit-a44f53acf53603e7d9b88352de035b1804be4e88.tar.gz luajit-a44f53acf53603e7d9b88352de035b1804be4e88.tar.bz2 luajit-a44f53acf53603e7d9b88352de035b1804be4e88.zip |
Use a securely seeded global PRNG for the VM.
It's not 2005 anymore.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r-- | src/lj_arch.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h index 3e3581c2..626f6c13 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h | |||
@@ -633,4 +633,19 @@ extern void *LJ_WIN_LOADLIBA(const char *path); | |||
633 | #define LJ_52 0 | 633 | #define LJ_52 0 |
634 | #endif | 634 | #endif |
635 | 635 | ||
636 | /* -- VM security --------------------------------------------------------- */ | ||
637 | |||
638 | /* Don't make any changes here. Instead build with: | ||
639 | ** make "XCFLAGS=-DLUAJIT_SECURITY_flag=value" | ||
640 | */ | ||
641 | |||
642 | /* Security defaults. */ | ||
643 | #ifndef LUAJIT_SECURITY_PRNG | ||
644 | #define LUAJIT_SECURITY_PRNG 1 | ||
645 | #endif | ||
646 | |||
647 | #ifndef LUAJIT_SECURITY_MCODE | ||
648 | #define LUAJIT_SECURITY_MCODE 1 | ||
649 | #endif | ||
650 | |||
636 | #endif | 651 | #endif |