diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-02-01 19:57:15 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-02-01 19:57:15 -0200 |
commit | 678c1255c92eed9c2c7564d340a5563b17395158 (patch) | |
tree | ca35d119d770835b59d34cdec93805190d3155d1 /lstate.h | |
parent | a4b96ce9a3305ae3585c0bb143fa7342c140f20b (diff) | |
download | lua-678c1255c92eed9c2c7564d340a5563b17395158.tar.gz lua-678c1255c92eed9c2c7564d340a5563b17395158.tar.bz2 lua-678c1255c92eed9c2c7564d340a5563b17395158.zip |
random seed used in the hash of all strings to avoid intentional
collisions
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.75 2012/01/20 22:05:50 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.76 2012/01/25 21:05:40 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -116,6 +116,7 @@ typedef struct global_State { | |||
116 | lu_mem lastmajormem; /* memory in use after last major collection */ | 116 | lu_mem lastmajormem; /* memory in use after last major collection */ |
117 | stringtable strt; /* hash table for strings */ | 117 | stringtable strt; /* hash table for strings */ |
118 | TValue l_registry; | 118 | TValue l_registry; |
119 | unsigned int seed; /* randomized seed for hashes */ | ||
119 | lu_byte currentwhite; | 120 | lu_byte currentwhite; |
120 | lu_byte gcstate; /* state of garbage collector */ | 121 | lu_byte gcstate; /* state of garbage collector */ |
121 | lu_byte gckind; /* kind of GC running */ | 122 | lu_byte gckind; /* kind of GC running */ |