Reimplemented rand/sand to be within GlibcRand class; OSX passes all tests