Provide API to get non-PRNG random bytes
@walters
Submitted by Colin Walters Link to original bug (#710736)
Description
Currently GRand seeds a private amount from /dev/urandom on Unix, and thereafter uses a PRNG.
Some applications really want the equivalent of /dev/urandom or /dev/random directly, suitable for cryptographic or security domains.
See: https://mail.gnome.org/archives/gdm-list/2007-November/msg00055.html
I propose an API like:
GBytes *g_random_from_system (gboolean blocking, guint bytes);