mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-01 18:23:36 +00:00
use urandom instead of random
This commit is contained in:
@ -197,7 +197,7 @@ ipmi_req_clear_entries(void)
|
|||||||
static int
|
static int
|
||||||
get_random(void *data, unsigned int len)
|
get_random(void *data, unsigned int len)
|
||||||
{
|
{
|
||||||
int fd = open("/dev/random", O_RDONLY);
|
int fd = open("/dev/urandom", O_RDONLY);
|
||||||
int rv;
|
int rv;
|
||||||
|
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
|
Reference in New Issue
Block a user