Software /
code /
prosody
Diff
util/random.lua @ 12975:d10957394a3c
util: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:16 +0100 |
parent | 12446:e54b8a5e35ad |
line wrap: on
line diff
--- a/util/random.lua Fri Mar 17 16:23:12 2023 +0100 +++ b/util/random.lua Fri Mar 17 16:23:16 2023 +0100 @@ -6,7 +6,7 @@ -- COPYING file in the source package for more information. -- -local ok, crand = pcall(require, "util.crand"); +local ok, crand = pcall(require, "prosody.util.crand"); if ok and pcall(crand.bytes, 1) then return crand; end local urandom, urandom_err = io.open("/dev/urandom", "r");