Add arity checks
#include <stdlib.h> for atoi
Node 0.6/0.8 compatibility
Merge pull request #229 from jfirebaugh/crypto.randomBytes

arity checks, atoi, node 0.6 and 0.8 comp fixes.