code: public function generate($size)
      {
          trigger_error(
              'This implementation is deprecated, as it can be insecure in some circumstances',
              E_USER_DEPRECATED
          );
  
          $generated = openssl_random_pseudo_bytes($size, $strong);
  
          if (false === $generated || strlen($generated) !== $size || false === $strong) {
              throw CryptographicFailureException::forReasonCode(
                  CryptographicFailureException::CODE_FOR_RANDOM_DATA_GENERATION_FAILURE
              );
          }
  
          return $generated;
      }
docs: {@inheritDoc}
  
  @deprecated This implementation is deprecated, as it's been found
  to be insecure. Use {@link RandomByteGeneratorInterface} instead.