Use BN_pseudo_rand instead of BN_rand