projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: use get_random_u32_below() instead of deprecated function
[linux-2.6-block.git]
/
net
/
ceph
/
mon_client.c
diff --git
a/net/ceph/mon_client.c
b/net/ceph/mon_client.c
index db60217f911b31ca04a768b3dee562d1d165ca02..faabad6603db29263d11682afbf3b1dad2ca9e69 100644
(file)
--- a/
net/ceph/mon_client.c
+++ b/
net/ceph/mon_client.c
@@
-222,7
+222,7
@@
static void pick_new_mon(struct ceph_mon_client *monc)
max--;
}
- n =
prandom_u32_max
(max);
+ n =
get_random_u32_below
(max);
if (o >= 0 && n >= o)
n++;