net: replace macros net_random and net_srandom with direct calls to prandom
[linux-block.git] / net / ipv4 / devinet.c
index 9809f7b69728cb335e0963c92ea4c9522842849f..646023bd5449705f138fd2a01d9720a3cecc45e8 100644 (file)
@@ -464,7 +464,7 @@ static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh,
        }
 
        if (!(ifa->ifa_flags & IFA_F_SECONDARY)) {
-               net_srandom(ifa->ifa_local);
+               prandom_seed((__force u32) ifa->ifa_local);
                ifap = last_primary;
        }