3 ms·
No need to download anything, the Linux kernel has a web interface to Git, of course. The relevant code is here: http://git.kernel.org/cgit/linux/kernel/git/to
by unwind 13y ago
No need to download anything, the Linux kernel has a web interface to Git, of course.
The relevant code is here: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/char/random.c#n976 http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.g....
- ape4 13y agoInteresting comment... /* * This function will use the architecture-specific hardware random * number generator if it is available. The arch-specific hw RNG will * almost certainly be faster than what we can do in software, but it * is impossible to verify that it is implemented securely (as * opposed, to, say, the AES encryption of a sequence number using a * key known by the NSA). So it's useful if we need the speed, but * only if we're willing to trust the hardware manufacturer not to * have put in a back door. */ void get_random_bytes_arch(void *buf, int nbytes)