File tree Expand file tree Collapse file tree
src/Robin/Ntlm/Crypt/Random Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 * "mcrypt" extension.
1717 *
1818 * @link http://php.net/mcrypt
19+ * @deprectated NOTE! This implementation is deprecated, as the mcrypt library
20+ * is abandoned. More info: https://github.com/robinpowered/php-ntlm/pull/1
1921 */
2022class McryptRandomByteGenerator implements RandomByteGeneratorInterface
2123{
@@ -63,9 +65,17 @@ public function __construct($source = self::DEFAULT_SOURCE)
6365
6466 /**
6567 * {@inheritDoc}
68+ *
69+ * @deprectated NOTE! This implementation is deprecated, as the mcrypt
70+ * library is abandoned.
6671 */
6772 public function generate ($ size )
6873 {
74+ trigger_error (
75+ 'This implementation is deprecated, as the mcrypt library is abandoned ' ,
76+ E_USER_DEPRECATED
77+ );
78+
6979 $ generated = mcrypt_create_iv ($ size , $ this ->source );
7080
7181 if (false === $ generated || strlen ($ generated ) !== $ size ) {
You can’t perform that action at this time.
0 commit comments