[Avida-SVN] r2852 - branches/hjg-dev/source/cpu
hjg at myxo.css.msu.edu
hjg at myxo.css.msu.edu
Thu Oct 16 19:19:15 PDT 2008
Author: hjg
Date: 2008-10-16 22:19:15 -0400 (Thu, 16 Oct 2008)
New Revision: 2852
Modified:
branches/hjg-dev/source/cpu/cHardwareCPU.cc
Log:
fixed bug
Modified: branches/hjg-dev/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/hjg-dev/source/cpu/cHardwareCPU.cc 2008-10-16 04:16:56 UTC (rev 2851)
+++ branches/hjg-dev/source/cpu/cHardwareCPU.cc 2008-10-17 02:19:15 UTC (rev 2852)
@@ -6773,7 +6773,7 @@
// see if the neighbor reciprocates
unsigned int recip_prob = (unsigned int) neighbor->GetReciprocationProbability();
- unsigned int rand_num = m_world->GetRandom().GetUInt(0, 9);
+ unsigned int rand_num = m_world->GetRandom().GetUInt(0, 10);
// neighbor donates to organism.
if(rand_num < recip_prob) {
if (neighbor->SubtractSelfRawMaterials(1)) {
More information about the Avida-cvs
mailing list