additional edge-case thread safety for RNG buffer filling