Software /
code /
prosody
Changeset
12447:07d25714c40c
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Apr 2022 16:39:29 +0200 |
parents | 12445:8d5fa022721c (current diff) 12446:e54b8a5e35ad (diff) |
children | 12449:6ec3fbae05c9 |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/random.lua Mon Mar 28 14:53:46 2022 +0100 +++ b/util/random.lua Sat Apr 02 16:39:29 2022 +0200 @@ -7,7 +7,7 @@ -- local ok, crand = pcall(require, "util.crand"); -if ok then return crand; end +if ok and pcall(crand.bytes, 1) then return crand; end local urandom, urandom_err = io.open("/dev/urandom", "r");