C
C
cybernoob2018-01-30 17:18:19
PHP
cybernoob, 2018-01-30 17:18:19

What are cryptographically secure rand() values?

rand() - Generates a random number
Warning: This function does not generate cryptographically secure values ​​and should not be used for cryptographic purposes.
What is the difference between cryptographically secure and insecure? What are they actually talking about here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OKyJIucT, 2018-01-30
@cybernoob

The randomness of the numbers generated by this function is not random enough to be used for cryptographic purposes. In a certain way, you can predict which number will fall at a certain moment, or even predict a whole sequence.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question