consolidating use of version number, corrected misuse of rnglib/NextBytes()