diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2005-11-11 18:41:45 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2005-11-11 18:41:45 -0500 |
commit | 60480de7c3d9d173bc6e683dd53b803c34ef4406 (patch) | |
tree | af63711b6eefe59ae80273613f2710c3fc91cc21 /dev | |
parent | 4410876773fa076a2b197cfbaf23ceea73137397 (diff) | |
download | gem5-60480de7c3d9d173bc6e683dd53b803c34ef4406.tar.xz |
Update random come to always have explict min/max
--HG--
extra : convert_revision : a2d1f6f8aa1df24ea524792f687f4d3ee31101f0
Diffstat (limited to 'dev')
-rw-r--r-- | dev/etherlink.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/etherlink.cc b/dev/etherlink.cc index e0f45c3bf..f68332926 100644 --- a/dev/etherlink.cc +++ b/dev/etherlink.cc @@ -162,7 +162,7 @@ EtherLink::Link::transmit(PacketPtr pkt) Tick delay = (Tick)ceil(((double)pkt->length * ticksPerByte) + 1.0); if (delayVar != 0) { Random<Tick> var; - delay += var.uniform(delayVar); + delay += var.uniform(0, delayVar); } DPRINTF(Ethernet, "scheduling packet: delay=%d, (rate=%f)\n", delay, ticksPerByte); |