Make random-state initialization threadsafe
This commit is contained in:
parent
91dd7d28ff
commit
adb03b730d
|
@ -323,6 +323,11 @@ retry:
|
|||
FcMutexFinish (lock);
|
||||
goto retry;
|
||||
}
|
||||
|
||||
FcMutexLock (lock);
|
||||
/* Initialize random state */
|
||||
FcRandom ();
|
||||
return;
|
||||
}
|
||||
FcMutexLock (lock);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue