From 678c1255c92eed9c2c7564d340a5563b17395158 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 1 Feb 2012 19:57:15 -0200 Subject: random seed used in the hash of all strings to avoid intentional collisions --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 38a7fb36..f6c093b3 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.75 2012/01/20 22:05:50 roberto Exp roberto $ +** $Id: lstate.h,v 2.76 2012/01/25 21:05:40 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -116,6 +116,7 @@ typedef struct global_State { lu_mem lastmajormem; /* memory in use after last major collection */ stringtable strt; /* hash table for strings */ TValue l_registry; + unsigned int seed; /* randomized seed for hashes */ lu_byte currentwhite; lu_byte gcstate; /* state of garbage collector */ lu_byte gckind; /* kind of GC running */ -- cgit v1.2.3-55-g6feb