Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania bez odpowiedzi
Viewing all articles
Browse latest Browse all 21942

bin2hex(random_bytes(32))

$
0
0

Siema użyłem tej funkcji:

bin2hex(random_bytes(32));

i mam błąd

Fatal error: Call to undefined function random_bytes() in C:\xampp\htdocs\index.php on line 33

W dokumentacji wyczytałem że

Note: Although this function was added to PHP in PHP 7.0, a » userland implementation is available for PHP 5.2 to 5.6, inclusive.

To jaką alternatywę na to proponujecie? wersje mam

5.6.30

 


Viewing all articles
Browse latest Browse all 21942