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

Glibc's rand() and srand() are now implemented within the GlibcRand class. This should fix the threading issues and system-specific `rand()` bugs.