Whamcloud - gitweb
LU-16594 build: get_random_u32_below, get_acl with dentry
[fs/lustre-release.git] / lustre / obdclass / lu_tgt_descs.c
index 9a965fc..697ff5e 100644 (file)
@@ -65,10 +65,10 @@ u64 lu_prandom_u64_max(u64 ep_ro)
                 * 32 bits (truncated to the upper limit, if needed)
                 */
                if (ep_ro > 0xffffffffULL)
-                       rand = (u64)prandom_u32_max((u32)(ep_ro >> 32)) << 32;
+                       rand = (u64)get_random_u32_below((u32)(ep_ro >> 32)) << 32;
 
                if (rand == (ep_ro & 0xffffffff00000000ULL))
-                       rand |= prandom_u32_max((u32)ep_ro);
+                       rand |= get_random_u32_below((u32)ep_ro);
                else
                        rand |= get_random_u32();
 #else