Cleanup on randomization
authorDaniel Veillard <veillard@redhat.com>
Fri, 18 May 2012 07:41:31 +0000 (15:41 +0800)
committerDaniel Veillard <veillard@redhat.com>
Fri, 18 May 2012 07:41:31 +0000 (15:41 +0800)
commit379ebc1d774865fa92f2a8d80cc4da65cbe19998
treef4ca19c2e88b289b5ba39973f5b24c5fcb62a6f6
parent9d9685ad88c17d35b6688695af3ceba7c7309b13
Cleanup on randomization

tsan reported that rand() is not thread safe, so create
a thread safe wrapper, use rand_r() if available.
Consolidate the function, initialization and cleanup in
dict.c and make sure it is initialized in xmlInitParser()
dict.c
hash.c
include/libxml/dict.h
libxml.h
parser.c