Building with cmake will check that the syscall exist, but the
implementation using it in random.cpp actually rely for it being Linux
only. Tht would cause build failure on non-Linux system that support the
call. Note that autotools is not affected.
A better solution would be to make it non Linux specific, but that will
require to make sure that the behavior is consistent between various OSs
or to handle the differences in random.cpp.
I choose the conservative approach here as it will not prevent from
improving the things later. Some interesting read regarding
getrandom(): https://lwn.net/Articles/800509/