This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/ns/patches/000-ranvar.patch

12 lines
496 B
Diff
Raw Normal View History

2013-07-13 17:19:22 +01:00
--- ns-2.34/tools/ranvar.cc 2009-06-14 18:35:44.000000000 +0100
+++ ns-2.34.rasm/tools/ranvar.cc 2012-09-17 23:48:42.570482838 +0100
@@ -216,7 +216,7 @@
// ACM Transactions on mathematical software, Vol. 26, No. 3, Sept. 2000
if (alpha_ < 1) {
double u = rng_->uniform(1.0);
- return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);
+ return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);
}
double x, v, u;