for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Knp\Rad\User\Salt\Generator;
use Knp\Rad\User\Salt\Generator;
class RandomBytesGenerator implements Generator
{
/**
* @var int
*/
private $length;
* @param int $length
public function __construct($length)
$this->length = $length;
}
* {@inheritdoc}
public function generate()
return openssl_random_pseudo_bytes($this->length);