]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/randutils: use explicit data types for bit ops
authorKarel Zak <kzak@redhat.com>
Tue, 28 Jan 2020 11:30:23 +0000 (12:30 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 30 Jan 2020 10:04:07 +0000 (11:04 +0100)
commitbf7a4b03b841958153e7893d87b4259cea93ad3e
tree8ca3ebbaaa48a6cba6bdf77a1920a6afa920a893
parent1776ed1027b777ea42d52ee421e16fa5cb407b3e
lib/randutils: use explicit data types for bit ops

ASAN is pretty unhappy with getpid() << 16, it seems better to save
into unsigned int and than do the bit-op.

Addresses: https://github.com/karelzak/util-linux/issues/942
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/randutils.c