Skip to content

Un-mutexify random() default buffer

Building on !491 (merged), this moves the default state buffer from behind a mutex back out into a static mut a SyncUnsafeCell. This is because the array is not actually guarded by the mutex, since initstate() and setstate() hand out a mutable pointer to the data.

Edited by Peter Limkilde Svendsen

Merge request reports