aboutsummaryrefslogtreecommitdiff
path: root/src/lj_obj.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_obj.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_obj.h')
-rw-r--r--src/lj_obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h
index c0ae6892..6c974812 100644
--- a/src/lj_obj.h
+++ b/src/lj_obj.h
@@ -620,6 +620,7 @@ typedef struct global_State {
620 GCRef cur_L; /* Currently executing lua_State. */ 620 GCRef cur_L; /* Currently executing lua_State. */
621 MRef jit_base; /* Current JIT code L->base or NULL. */ 621 MRef jit_base; /* Current JIT code L->base or NULL. */
622 MRef ctype_state; /* Pointer to C type state. */ 622 MRef ctype_state; /* Pointer to C type state. */
623 PRNGState prng; /* Global PRNG state. */
623 GCRef gcroot[GCROOT_MAX]; /* GC roots. */ 624 GCRef gcroot[GCROOT_MAX]; /* GC roots. */
624} global_State; 625} global_State;
625 626