Make random-state initialization threadsafe

This commit is contained in:
Behdad Esfahbod 2012-10-08 20:03:35 -04:00
parent 91dd7d28ff
commit adb03b730d
1 changed files with 5 additions and 0 deletions

View File

@ -323,6 +323,11 @@ retry:
FcMutexFinish (lock); FcMutexFinish (lock);
goto retry; goto retry;
} }
FcMutexLock (lock);
/* Initialize random state */
FcRandom ();
return;
} }
FcMutexLock (lock); FcMutexLock (lock);
} }