private function disableOpenSSL() { $ref = new \ReflectionProperty('Bitpay\\Util\\SecureRandom', 'hasOpenSSL'); $ref->setAccessible(true); $ref->setValue(false); $ref->setAccessible(false); }