Fixes for old Knuth rng; hooked R interface to use R runif.