added internal prototype functions in RNG library to solve a compiler error