summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-06-14 14:21:16 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-06-14 14:21:16 +0000
commit1265724ff5abb1dcf468cb33153ae1326426d7a6 (patch)
treea3775946942cf07ffdc1fee4a6b8ace455e5a8d8 /src/tutorial/funcs.source
parent37c839365c566c9e8d7e96cea79e535281144224 (diff)
The random selection in function linear() could deliver a value equal to max
if geqo_rand() returns exactly 1.0, resulting in failure due to indexing off the end of the pool array. Also, since this is using inexact float math, it seems wise to guard against roundoff error producing values slightly outside the expected range. Per report from bug@zedware.org.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions