[Cryptography] Is Ron right on randomness

Theodore Ts'o tytso at mit.edu
Thu Dec 1 11:14:37 EST 2016


On Wed, Nov 30, 2016 at 05:59:24AM -0800, Bill Cox wrote:
> I just learned on another thread that Linux provided a fixed API.  The new
> right answer on Linux is to call getrandom:
> 
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f3
> 
> It's in linux 3.17.  My Ubuntu 14.04 laptop upgraded to 3.19, so I had
> it... Then it upgraded to 4.2.0, and now I no longer have it.  Grrr...

Huh?  It most certainly is in 4.2.0.  What were you saying about noise
on these threads being aggravating?

% git show v4.2:drivers/char/random.c  | grep getrandom
SYSCALL_DEFINE3(getrandom, char __user *, buf, size_t, count,

			   	       	       - Ted


More information about the cryptography mailing list