diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-02-22 08:51:26 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-02-22 08:51:26 +0100 |
| commit | 7e6dcd9995b99e894b8017f09016c405b066ca36 (patch) | |
| tree | 4a7b37b6c622abe872d141918375cb90d378f4c1 /src/script/script.cpp | |
| parent | sanity: Move OS random to sanity check function (diff) | |
| download | discoin-7e6dcd9995b99e894b8017f09016c405b066ca36.tar.xz discoin-7e6dcd9995b99e894b8017f09016c405b066ca36.zip | |
random: Add fallback if getrandom syscall not available
If the code was compiled with newer (>=3.17) kernel headers but executed
on a system without the system call, every use of random would crash the
program. Add a fallback for that case.
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions