Re: Bug: Getting dice from random.org for the second time

2020-08-13 Thread Christian Anthon
No this has probably always been the way it worked, but depending on the number of random numbers you ask for and on the implementation of libcurl you will get either one or more callbacks to RandomOrgCallBack. This should do the trick: 41c41 < unsigned int iNumRead = 0; --- > unsigned int

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Philippe Michel
On Wed, Aug 12, 2020 at 05:09:44PM +0200, Christian Anthon wrote: > Definitely a bug of some kind. The dice generator either runs out > prematurely or decides that 0 is a valid rolid. I added a bit of debug code > and it ended around 450 rolls each time and decided to return 0... I confess ; I ha

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Peter Lederer
Hello, I searched for a switch to start GNUBG multithreaded in "man gnubg", but didnt find one. Then I started two instances by starting "gnubg -w" twice. I hope this is what you meant. The flaw happens with both instances. Afterwards I fiddled around with wireshark (though I am not a perfect ex

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Christian Anthon
This was gnubg playing itself in the GUI and I believe it happens the same way in the text interface so I don’t think mt plays a factor. I’ll test a bit more when I find the time. C On Wed, 12 Aug 2020 at 18.28, Øystein Schønning-Johansen wrote: > Hmmm... Peter? Can you check if this bug appe

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Øystein Schønning-Johansen
Hmmm... Peter? Can you check if this bug appears both when doing multithreading as well as when running gnubg with a single thread? -Øystein On Wed, Aug 12, 2020 at 5:10 PM Christian Anthon wrote: > Definitely a bug of some kind. The dice generator either runs out > prematurely or decides that

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Christian Anthon
Definitely a bug of some kind. The dice generator either runs out prematurely or decides that 0 is a valid rolid. I added a bit of debug code and it ended around 450 rolls each time and decided to return 0... Counters 458 500 Random 0 C On Wed, Aug 12, 2020 at 4:57 PM Guido Flohr wrote: > Hi P

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Guido Flohr
Hi Peter, > On 12 Aug 2020, at 16:29, Peter Lederer > wrote: > > Hello, > > my Linux Mint is a German version. Thus GNUBG is German as well > ("Voreingestellt"). > > I cannot change the language setting to another language. It says > "Locale 'en_US' not supported by

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Peter Lederer
Hello, my Linux Mint is a German version. Thus GNUBG is German as well ("Voreingestellt"). I cannot change the language setting to another language. It says "Locale 'en_US' not supported by C library." 2020-08-12 10:54 GMT+02:00, Øystein Schønning-Johansen : > I've not tested, but could this

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Øystein Schønning-Johansen
I've not tested, but could this be a problem at random.org? Maybe we should start using their new JSON-RPC based API? -Øystein On Wed, Aug 12, 2020 at 10:40 AM Peter Lederer wrote: > Hello Philippe, > > it happens consistently. Every time. > > My internet connection is flawless. > > If I restart

Re: Bug: Getting dice from random.org for the second time

2020-08-12 Thread Peter Lederer
Hello Philippe, it happens consistently. Every time. My internet connection is flawless. If I restart GNUBG it fetches the next (first for the next match) 500 numbers without any problem. I have no idea what to change. Greets Peter 2020-08-11 22:21 GMT+02:00, Philippe Michel : > On Sat, A

Re: Bug: Getting dice from random.org for the second time

2020-08-11 Thread Philippe Michel
On Sat, Aug 08, 2020 at 02:40:24PM +0200, Peter Lederer wrote: > I use GNU Backgammon 1.06.001 Feb 28 2018 on Linux Mint 19.3 as it > comes from the distribution repository. > > As dice generator I use random.org. The fetching of the first 500 dice > works fine. When required to receive the secon

Bug: Getting dice from random.org for the second time

2020-08-08 Thread Peter Lederer
Hi guys, I use GNU Backgammon 1.06.001 Feb 28 2018 on Linux Mint 19.3 as it comes from the distribution repository. As dice generator I use random.org. The fetching of the first 500 dice works fine. When required to receive the second portion of dice it says "Your dice generator isn't working. Fa