Re: [text] Correct RandomStringGenerator description of thread safety/immutability

2017-06-04 Thread Duncan Jones
> On 3 Jun 2017, at 09:55, sebb wrote: > > On 3 June 2017 at 08:40, Gilles wrote: >> Hi Duncan. >> >> Can we really say that "RandomStringBuilder instances >> are _immutable_ [...] if using the default random number >> generator"? >> Calling "nextInt" on the instance returned by >> ThreadLoca

Re: [text] Correct RandomStringGenerator description of thread safety/immutability

2017-06-03 Thread sebb
On 3 June 2017 at 08:40, Gilles wrote: > Hi Duncan. > > Can we really say that "RandomStringBuilder instances > are _immutable_ [...] if using the default random number > generator"? > Calling "nextInt" on the instance returned by > ThreadLocalRandom.current() > does change some internal state..

Re: [text] Correct RandomStringGenerator description of thread safety/immutability

2017-06-03 Thread Gilles
Hi Duncan. Can we really say that "RandomStringBuilder instances are _immutable_ [...] if using the default random number generator"? Calling "nextInt" on the instance returned by ThreadLocalRandom.current() does change some internal state... [IOW, unless I'm missing something, I think that "im