What steps will reproduce the problem?
1. load util.random with util.crand available on Linux before version 3.17
2. call util.random.bytes()
What is the expected output?
The call should work, util.crand should not work if it is configured to use the getrandom() system call.
What do you see instead?
lua: Function not implemented
stack traceback:
[C]: in function 'random_bytes'
/usr/share/lua/5.2/prosody/util/id.lua:16: in function </usr/share/lua/5.2/prosody/util/id.lua:15>
(...tail calls...)
/usr/share/lua/5.2/prosody/util/async.lua:158: in function 'runner'
/usr/bin/prosody:53: in main chunk
[C]: in ?
What version of the product are you using? On what operating system?
Reported by user on Debian buster with some armhf architecture running Linux kernel 3.10.99
Zash
on
Reported by fabiobassa in the chat. Patch tested and committed as I'm typing these words.
What steps will reproduce the problem? 1. load util.random with util.crand available on Linux before version 3.17 2. call util.random.bytes() What is the expected output? The call should work, util.crand should not work if it is configured to use the getrandom() system call. What do you see instead? lua: Function not implemented stack traceback: [C]: in function 'random_bytes' /usr/share/lua/5.2/prosody/util/id.lua:16: in function </usr/share/lua/5.2/prosody/util/id.lua:15> (...tail calls...) /usr/share/lua/5.2/prosody/util/async.lua:158: in function 'runner' /usr/bin/prosody:53: in main chunk [C]: in ? What version of the product are you using? On what operating system? Reported by user on Debian buster with some armhf architecture running Linux kernel 3.10.99
Reported by fabiobassa in the chat. Patch tested and committed as I'm typing these words.
ChangesFixed in https://hg.prosody.im/trunk/rev/e54b8a5e35ad
Changes