Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com To: "Cygwin List" Date: Fri, 09 Apr 1999 13:34:29 -0800 From: "Phil Edwards" Message-ID: Mime-Version: 1.0 X-Sent-Mail: on X-Mailer: MailCity Service Subject: random_shuffle failure on B20.1? X-Sender-Ip: 162.18.75.91 Attachments: bug.txt Organization: Deja News Mail (http://www.my-dejanews.com:80) Content-Type: multipart/mixed; boundary="=_-=_-IIJAJHHBKCEAAAAA" Content-Transfer-Encoding: 7bit --=_-=_-IIJAJHHBKCEAAAAA Content-Type: text/plain; charset=us-ascii Content-Length: 900 Content-Transfer-Encoding: 7bit I've been doing some work under B20.1/egcs-1.1.2 using -mno-cygwin, and getting errors when I try to use the standard algorithm random_shuffle() (which I have used before, so I know the STL code isn't completely full of cheese, etc). The error messages, and an almost-minimal test case, were saved to bug.txt; the file is attached. When I used random_shuffle before, I had problems because the 48-bit generator would be used instead of the older generator; we had to call srand48() instead of srand() before random became truly random. But at least it compiled then... is {,l,r}rand() not implemented on the LoseNT end, or is the wrong cpp macro being defined? Much thanks as always, Phil (seriously missing the *nix box that just got removed) -----== Sent via Deja News, The Discussion Network ==----- http://www.dejanews.com/ Easy access to 50,000+ discussion forums --=_-=_-IIJAJHHBKCEAAAAA Content-Type: text/plain; charset=us-ascii; name="bug.txt" Content-Length: 7852 Content-Transfer-Encoding: base64 ZysrIC1tbm8tY3lnd2luIC12IC1jIGZvby5jYyA+IGJ1Zy50eHQgMj4mMToNClJlYWRpbmcg c3BlY3MgZnJvbSBEOi9jeWdudXMvY3lnd2luLWIyMC9ILWk1ODYtY3lnd2luMzIvYmluLy4u L2xpYi9nY2MtbGliL2k1ODYtY3lnd2luMzIvZWdjcy0yLjkxLjY2L3NwZWNzDQpnY2MgdmVy c2lvbiBlZ2NzLTIuOTEuNjYgMTk5OTAzMTQgKGVnY3MtMS4xLjI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W5nPiAgICBzOw0KCXMu cHVzaF9iYWNrICgib25lIik7DQoJcy5wdXNoX2JhY2sgKCJ0d28iKTsNCglzLnB1c2hfYmFj ayAoInRocmVlIik7DQoJcy5wdXNoX2JhY2sgKCJmb3VyIik7DQoJcmFuZG9tX3NodWZmbGUg KHMuYmVnaW4oKSwgcy5lbmQoKSk7DQp9DQoNCg== --=_-=_-IIJAJHHBKCEAAAAA Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --=_-=_-IIJAJHHBKCEAAAAA--