Use a securely seeded global PRNG for the VM.
It's not 2005 anymore.
This commit is contained in:
@@ -372,4 +372,9 @@ static LJ_AINLINE uint32_t lj_getu32(const void *v)
|
||||
extern void LJ_ASSERT_NAME(__LINE__)(int STATIC_ASSERTION_FAILED[(cond)?1:-1])
|
||||
#endif
|
||||
|
||||
/* PRNG state. Need this here, details in lj_prng.h. */
|
||||
typedef struct PRNGState {
|
||||
uint64_t u[4];
|
||||
} PRNGState;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user