https://bugs.winehq.org/show_bug.cgi?id=49938
--- Comment #9 from Ruslan Kabatsayev b7.10110111@gmail.com --- (In reply to Hans Leidekker from comment #8)
So getrandom() returns ENOSYS. This suggests you're running glibc new enough to have a wrapper for the syscall on a kernel that doesn't implement this syscall. Can you describe your setup in more detail?
My system is LFS with x86_64 Linux 4.14.157, 32-bit userland with glibc 2.27 (configured with --enable-kernel=3.2, as suggested in the LFS book).
As I've tested now, it's glibc that raises ENOSYS, not the kernel. Particularly, another glibc from cross-x86_64 toolchain executes the actual syscall, which succeeds, while this system glibc just executes its #else code for #ifdef __NR_getrandom in getrandom.c.
Do you think I have misconfigured my system somehow?