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 /lstring.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 'lstring.h')
-rw-r--r-- | lstring.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.h,v 1.46 2010/04/05 16:26:37 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.48 2012/01/25 21:05:40 roberto Exp roberto $ |
3 | ** String table (keep all strings handled by Lua) | 3 | ** String table (keep all strings handled by Lua) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -34,7 +34,7 @@ | |||
34 | #define eqshrstr(a,b) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b)) | 34 | #define eqshrstr(a,b) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b)) |
35 | 35 | ||
36 | 36 | ||
37 | LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l); | 37 | LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); |
38 | LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); | 38 | LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); |
39 | LUAI_FUNC int luaS_eqstr (TString *a, TString *b); | 39 | LUAI_FUNC int luaS_eqstr (TString *a, TString *b); |
40 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); | 40 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); |