Re: STL std::random_shuffle behavior fails with lrand48

2004-08-04 Thread Christopher Faylor
On Tue, Aug 03, 2004 at 11:16:21PM -0700, Jim Kleckner wrote: >Arturus Magi wrote: > >>Jim Kleckner wrote: >> >>>Version of cygwin is current (see attached file >>>for all version stamps) >>>gcc 3.3.1-3 >>>gcc-g++ 3.3.1-3 >>> >>>version of gcc/g++ on Linux is 2.9

Re: STL std::random_shuffle behavior fails with lrand48

2004-08-03 Thread Jim Kleckner
Arturus Magi wrote: Jim Kleckner wrote: Version of cygwin is current (see attached file for all version stamps) gcc 3.3.1-3 gcc-g++ 3.3.1-3 version of gcc/g++ on Linux is 2.96. The test program is attached as is cygcheck output. To run it just type (note that -mn

Re: STL std::random_shuffle behavior fails with lrand48 (workaround)

2004-08-03 Thread Jacek Trzmiel
> If someone else could demonstrate that > the bug exists on other platforms, I would > be grateful. I've compiled and run code from: http://cygwin.com/ml/cygwin/2004-07/msg01118.html on Cygwin and FreeBSD machine: cygwin1.dll snapshot 20040720-12:03:09: $ g++ --version g++ (GCC) 3.3.1 (cygming

Re: STL std::random_shuffle behavior fails with lrand48 (workaround)

2004-08-02 Thread Jim Kleckner
Arturus Magi wrote: Jim Kleckner wrote: Version of cygwin is current (see attached file for all version stamps) gcc 3.3.1-3 gcc-g++ 3.3.1-3 version of gcc/g++ on Linux is 2.96. The test program is attached as is cygcheck output. To run it just type (note that -mn

Re: STL std::random_shuffle behavior fails with lrand48

2004-07-30 Thread Arturus Magi
Jim Kleckner wrote: Version of cygwin is current (see attached file for all version stamps) gcc 3.3.1-3 gcc-g++ 3.3.1-3 version of gcc/g++ on Linux is 2.96. The test program is attached as is cygcheck output. To run it just type (note that -mno-cygwin is *not* us

STL std::random_shuffle behavior fails with lrand48

2004-07-30 Thread Jim Kleckner
Attached is a simple test case of std::random_shuffle() that gives different answers on cygwin and RH Linux. Note that the output looks like a simple circular rotation on cygwin but works correctly on RH 7.2. The problem appears to be the implementation of lrand48(). If you undefine: #undef _GL