diff options
-rw-r--r-- | sys/netinet/ip_id.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_id.c b/sys/netinet/ip_id.c index b75d79940b7..07834dfcd25 100644 --- a/sys/netinet/ip_id.c +++ b/sys/netinet/ip_id.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_id.c,v 1.17 2008/03/02 21:29:07 djm Exp $ */ +/* $OpenBSD: ip_id.c,v 1.18 2008/03/02 21:38:18 deraadt Exp $ */ /* * Copyright (c) 2008 Theo de Raadt, Ryan McBride @@ -58,7 +58,6 @@ ip_randomid(void) for (i = 0; i < sizeof(ip_shuffle)/sizeof(ip_shuffle[0]); ++i) ip_shuffle[i] = i; for (i = sizeof(ip_shuffle)/sizeof(ip_shuffle[0]); --i; ) { - /* disregard the modulo bias because it is small */ i2 = arc4random_uniform(i + 1); r = ip_shuffle[i]; ip_shuffle[i] = ip_shuffle[i2]; |