Skip to content

Commit 7d7f798

Browse files
MC-13806: Replace rand with random_int
- fix static tests
1 parent d072357 commit 7d7f798

File tree

1 file changed

+7
-7
lines changed
  • lib/internal/Magento/Framework/Encryption

1 file changed

+7
-7
lines changed

lib/internal/Magento/Framework/Encryption/Crypt.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class Crypt
4141
/**
4242
* Constructor
4343
*
44-
* @param string $key Secret encryption key.
45-
* It's unsafe to store encryption key in memory, so no getter for key exists.
46-
* @param string $cipher Cipher algorithm (one of the MCRYPT_ciphername constants)
47-
* @param string $mode Mode of cipher algorithm (MCRYPT_MODE_modeabbr constants)
48-
* @param string|bool $initVector Initial vector to fill algorithm blocks.
49-
* TRUE generates a random initial vector.
50-
* FALSE fills initial vector with zero bytes to not use it.
44+
* @param string $key Secret encryption key.
45+
* It's unsafe to store encryption key in memory, so no getter for key exists.
46+
* @param string $cipher Cipher algorithm (one of the MCRYPT_ciphername constants)
47+
* @param string $mode Mode of cipher algorithm (MCRYPT_MODE_modeabbr constants)
48+
* @param string|bool $initVector Initial vector to fill algorithm blocks.
49+
* TRUE generates a random initial vector.
50+
* FALSE fills initial vector with zero bytes to not use it.
5151
* @throws \Exception
5252
*/
5353
public function __construct(

0 commit comments

Comments
 (0)