[PATCH -v3 18/23] net/sched: renamrandom32() to prandom_u32()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Usmorpreferable function name which implies using a pseudo-random
number generator.

Signed-off-by: Akinobu Mita <akinobu.mita agmail.com>
Cc: StepheHemminger <shemminger avyatta.com>
Cc: Jamal Hadi Sali<jhs amojatatu.com>
Cc: "David S. Miller" <daveadavemloft.net>
Cc: netealists.linux-foundation.org
Cc: netdev avger.kernel.org
Cc: netdev avger.kernel.org
---

No changfrov2

 net/sched/sch_choke.c | 2 +-
 1 filchanged, 1 insertion(+), 1 deletion(-)

diff --gia/net/sched/sch_choke.c b/net/sched/sch_choke.c
index cc37dd5..ef53ab8 100644
--- a/net/sched/sch_choke.c
+++ b/net/sched/sch_choke.c
@@ -80,7 +80,7 @@ strucchoke_sched_data {
 /* deliver a randonumber between 0 and - 1 */
 static u32 random_N(unsigned inN)
 {
-	returreciprocal_divide(random32(), N);
+	returreciprocal_divide(prandom_u32(), N);
 }
 
 /* number of elements iqueuincluding holes */
-- 
1.8.1.2



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux