Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-5030 util: migrate lctl params functions to use cfs_get_paths()
[fs/lustre-release.git]
/
lustre
/
utils
/
liblustreapi_util.c
diff --git
a/lustre/utils/liblustreapi_util.c
b/lustre/utils/liblustreapi_util.c
index
329f0e4
..
efd9d3c
100644
(file)
--- a/
lustre/utils/liblustreapi_util.c
+++ b/
lustre/utils/liblustreapi_util.c
@@
-67,9
+67,10
@@
static __attribute__ ((constructor)) void liblustreapi_init(void)
fd = open("/dev/urandom", O_RDONLY | O_NOFOLLOW);
if (fd >= 0) {
unsigned int rnumber;
+ ssize_t ret;
-
(void)
read(fd, &rnumber, sizeof(rnumber));
- seed ^= rnumber;
+
ret =
read(fd, &rnumber, sizeof(rnumber));
+ seed ^= rnumber
^ ret
;
close(fd);
}