treewide: use get_random_u32_below() instead of deprecated function
[linux-2.6-block.git] / net / ceph / mon_client.c
index db60217f911b31ca04a768b3dee562d1d165ca02..faabad6603db29263d11682afbf3b1dad2ca9e69 100644 (file)
@@ -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++;