Restore hex and random_bytes to SecureRandom 1.8

The refactor which replaced hex and random_bytes with native code
in SecureRandom accidentally left them broken for 1.8.  Restored!
Merge pull request #1439 from dmarcotte/securerand-18

Restore hex and random_bytes to SecureRandom 1.8 (fixes Travis)