From ba4f6a9c499c64ebca84279cc44bf6449fd245c1 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 8 Sep 2007 23:16:30 +0000 Subject: [PATCH] Added a comment questioning one of the Random::operator() methods. git-svn-id: http://svn.voria.com/code@637 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_particle/random.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synfig-core/trunk/src/modules/mod_particle/random.cpp b/synfig-core/trunk/src/modules/mod_particle/random.cpp index c72c763..783a34c 100644 --- a/synfig-core/trunk/src/modules/mod_particle/random.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/random.cpp @@ -57,6 +57,10 @@ Random::set_seed(int x) t_mask=rand()+rand()*RAND_MAX; } +// this picks one of the POOL_SIZE (256) preset values out of the pool +// and scales it to be in the range (-1, 1). is that what it was +// intended to do? the distribution is pretty terrible, too, with +// some elements being picked a hundred times more often than others float Random::operator()(const int salt,const int x,const int y,const int t)const { -- 2.7.4