A couple of things were reversed for BN_pseudo_rand ...