Changeset 10568:83a026cffa47 in orange


Ignore:
Timestamp:
03/18/12 22:56:04 (2 years ago)
Author:
Janez Demšar <janez.demsar@…>
Branch:
default
Message:

Fixed RandomGeneratorreduce (Mersenne twister leaves mt.next dangling until the first use, which caused reduce to miscalculate the buffer size)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_kernel.cpp

    r10482 r10568  
    17801780  return Py_BuildValue("O(Os#ii)N", getExportedFunction("__pickleLoaderRandomGenerator"), 
    17811781                                    self->ob_type, 
    1782                                     (char *)(mt.state), (mt.next-mt.state + mt.left + 1) * sizeof(long), 
     1782                                    (char *)(mt.state), 625 * sizeof(long), 
    17831783                                    mt.next - mt.state, 
    17841784                                    mt.left, 
Note: See TracChangeset for help on using the changeset viewer.