diff options
Diffstat (limited to 'Core/Util/SecureRandom.php')
-rw-r--r-- | Core/Util/SecureRandom.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Core/Util/SecureRandom.php b/Core/Util/SecureRandom.php index 478f556..06ed893 100644 --- a/Core/Util/SecureRandom.php +++ b/Core/Util/SecureRandom.php @@ -11,11 +11,15 @@ namespace Symfony\Component\Security\Core\Util; +@trigger_error('The '.__NAMESPACE__.'\SecureRandom class is deprecated since version 2.8 and will be removed in 3.0. Use the random_bytes() function instead.', E_USER_DEPRECATED); + /** * A secure random number generator implementation. * * @author Fabien Potencier <fabien@symfony.com> * @author Johannes M. Schmitt <schmittjoh@gmail.com> + * + * @deprecated since version 2.8, to be removed in 3.0. Use the random_bytes function instead */ final class SecureRandom implements SecureRandomInterface { |