3 ms·
True, but never pass GRND_RANDOM or GRND_NONBLOCK.
by JoshTriplett 10y ago
True, but never pass GRND_RANDOM or GRND_NONBLOCK.
- zrm 10y agoWhy do these flags exist if they should never be used?
- marcosdumay 10y agoThere are probably good uses for them. But unless you are doing something very tightly integrated with Linux, you should just ignore them.
- Gaelan 10y agoNONBLOCK just returns an error code instead of blocking. No harm in that, AFIAK.
- marcosdumay 10y agoJust wait until people start using the EAGAIN value in keys.