Make the random updater thread safe (but slightly slower)