address review comments on osrandom engine, reorganize some code
2 files changed