staging/lustre: use 64-bit times for cfs_srand seed
authorArnd Bergmann <arnd@arndb.de>
Sun, 27 Sep 2015 20:45:14 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:03:36 +0000 (04:03 +0200)
commit1f4fc343c008981d3a91351c030e2c29f5cd1b1c
treecfb7ddc7009c251b688f0a31a20c1eb3d2cb6c21
parent473c4e01029f6692be7ddc0e7f9b75dc933c7057
staging/lustre: use 64-bit times for cfs_srand seed

Several functions in Lustre call cfs_srand with do_gettimeofday
as the seed to get a pseudo-random number.
There is no bug here, but changing it to use ktime_get_ts64()
gets us closer to deprecating do_gettimeofday() and makes it slightly
more random.

Affected functions are:
lnet_shuffle_seed, init_lustre_lite and class_handle_init

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/router.c
drivers/staging/lustre/lustre/llite/super25.c
drivers/staging/lustre/lustre/obdclass/lustre_handles.c