mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-15 14:16:51 +03:00
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()