Annotate

.luacov @ 12446:e54b8a5e35ad 0.12

util.random: Test whether util.crand works before using it (fix #1734) util.crand can be configured at compile time to use the Linux getrandom() system call, available from Linux 3.17, but it is still possible to load it with an older kernel lacking that system call, where attempting to use it throws an ENOSYS error. By testing for this on load we can fall back to /dev/urandom in this case.
author Kim Alvefur <zash@zash.se>
date Sat, 02 Apr 2022 16:33:27 +0200
parent 9469:cd2f742e5826
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9469
cd2f742e5826 .luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1 exclude = {
cd2f742e5826 .luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2 "^%./spec/";
cd2f742e5826 .luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
3 }