Merge pull request #227 from jfirebaugh/crypto.randomBytes

Use crypto.randomBytes rather than using OpenSSL directly
Add arity checks
#include <stdlib.h> for atoi