fixed RAND_bytes return code checking
Merge pull request #242 from nopjmp/fix_rand_bytes

fixed RAND_bytes return code checking