random library fibonacci bug
16 Mar
2004
16 Mar
'04
3 p.m.
There seems to be a bug in the fibonacci random generators. Only the smaller
lagged_fibonacci generators work. Code Sample (tested with VC7.1) follows. The
debugger says:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a
function call. This is usually a result of calling a function declared with
one calling convention with a function pointer declared with a different
calling convention.
//lagged_fibonacci4423 and smaller works,
//>=9689 fails
typedef boost::lagged_fibonacci9689 rng_type;
rng_type rng;
rng.seed((unsigned)time( NULL ));
boost::uniform_int
7562
Age (days ago)
7562
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Wartens