On compilation on Linux with the getrandom system call, the compiler throws a warning, because SYS_getrandom is defined implicitly. This was because the #includes in randombytes.h do not set _GNU_SOURCE accordingly. So _GNU_SOURCE is defined afterunistd.h is included for the first time.
This PR adds _GNU_SOURCE to randombytes.h to fix this issue.
On compilation on Linux with the
getrandom
system call, the compiler throws a warning, becauseSYS_getrandom
is defined implicitly. This was because the#include
s inrandombytes.h
do not set_GNU_SOURCE
accordingly. So_GNU_SOURCE
is defined afterunistd.h
is included for the first time.This PR adds
_GNU_SOURCE
torandombytes.h
to fix this issue.