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