Commit 379ebc1d774865fa92f2a8d80cc4da65cbe19998

Daniel Veillard 2012-05-18T15:41:31

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()