Bug #74130 [Opn->Dup]: /dev/urandom

From: Date: Sun, 19 Feb 2017 19:16:26 +0000
Subject: Bug #74130 [Opn->Dup]: /dev/urandom
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207447@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74130&edit=1 ID: 74130 Updated by: requinix@php.net Reported by: bart at jdsoft dot be Summary: /dev/urandom -Status: Open +Status: Duplicate Type: Bug Package: *Encryption and hash functions Operating System: Linux PHP Version: 7.0.16 Block user comment: N Private report: N New Comment: As said in the documentation, this happens on Linux if the system does not support the getrandom(2) syscall. That has been fixed with bug #74105. Previous Comments: ------------------------------------------------------------------------ [2017-02-19 19:12:02] bart at jdsoft dot be Description: ------------ Unable to generate a random value Test script: --------------- echo "<?php random_bytes(10);" | php Actual result: -------------- PHP Fatal error: Uncaught Exception: Could not gather sufficient random data in -:1 Stack trace: #0 -(1): random_bytes(10) #1 {main} thrown in - on line 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74130&edit=1

« previous php.bugs (#207447) next »