bug fixes to local rng examples using snowfall and rsprng or rstream