aboutsummaryrefslogtreecommitdiff
path: root/src/lj_def.h
diff options
context:
space:
mode:
authorMike Pall <mike>2020-06-15 12:21:05 +0200
committerMike Pall <mike>2020-06-15 12:21:05 +0200
commita44f53acf53603e7d9b88352de035b1804be4e88 (patch)
tree940e202e0ca56e0df42860fbc89326e72cdc148d /src/lj_def.h
parent34e53736c6ed90dc56357aff22009e88b443ecfd (diff)
downloadluajit-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_def.h')
-rw-r--r--src/lj_def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_def.h b/src/lj_def.h
index af0687c4..e458c89f 100644
--- a/src/lj_def.h
+++ b/src/lj_def.h
@@ -372,4 +372,9 @@ static LJ_AINLINE uint32_t lj_getu32(const void *v)
372 extern void LJ_ASSERT_NAME(__LINE__)(int STATIC_ASSERTION_FAILED[(cond)?1:-1]) 372 extern void LJ_ASSERT_NAME(__LINE__)(int STATIC_ASSERTION_FAILED[(cond)?1:-1])
373#endif 373#endif
374 374
375/* PRNG state. Need this here, details in lj_prng.h. */
376typedef struct PRNGState {
377 uint64_t u[4];
378} PRNGState;
379
375#endif 380#endif