]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libuuid: use access(2) when checking /dev/random availability
authorSami Kerola <kerolasa@iki.fi>
Sun, 30 Jul 2017 11:33:12 +0000 (12:33 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 5 Aug 2017 08:58:25 +0000 (09:58 +0100)
commit30124e172a8beef96bde3b6c0844d9aaea801ee8
treedcebf6de507f2f089179ff9c0d2f615f9abc1d6a
parent8cfbd350482cffbfbfbf1edee26226fe00bbc7d7
libuuid: use access(2) when checking /dev/random availability

The access(2) is more lightwight than stat(2), and tells whether random
device(s) can be read or not, unlike the earlier stat() call.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
libuuid/src/gen_uuid.c