Re: AW: [rng] Uniform big integers

2018-12-21 Thread Gilles
On Sat, 22 Dec 2018 00:51:11 +0100, Bernd Eckenfels wrote: Hello, just noticed an adapter is already referenced (rng.simple.JDKRandomBridge) Forgot that one; sorry! Thanks for the reminder; "setSeed" is even supported... Regards, Gilles on the „why not java random“ page. So it can be used

AW: [rng] Uniform big integers

2018-12-21 Thread Bernd Eckenfels
Hello, just noticed an adapter is already referenced (rng.simple.JDKRandomBridge) on the „why not java random“ page. So it can be used with the BigInteger constructor to generate power-of-two randoms (already). I wont request more Features without having a usecase for them. Thanks for Looking

Re: [rng] Uniform big integers

2018-12-21 Thread Gilles
Hi. On Fri, 21 Dec 2018 16:04:05 +, Bernd Eckenfels wrote: Hello, The actual discussion on the OpenJDK list turned out to be a wrong understanding and the simple case of generating random bytes was enough for BigInteger. However regarding RNG I can open requests, one would be for a

Re: [IO] Robust file remover, other Windows-specific enhancements

2018-12-21 Thread Matt Sicker
I like that idea. I'll reorganize some code from the Jenkins PR into a one for IO. On Fri, 21 Dec 2018 at 11:51, Gary Gregory wrote: > That could go in Commons IO, sure. > > I would prefer the code to go in a focused class like a DeleteUtils or > DeleteFiles. It might also be neat to make the

Re: [IO] Robust file remover, other Windows-specific enhancements

2018-12-21 Thread Matt Sicker
After looking through the open issues and PRs for IO, I don't see anything similar, though there is https://issues.apache.org/jira/browse/IO-295 which may be related to junctions as well. This may also be a nice opportunity to introduce a PathUtils class similar to FileUtils since IO already uses

Re: [IO] Robust file remover, other Windows-specific enhancements

2018-12-21 Thread Gary Gregory
That could go in Commons IO, sure. I would prefer the code to go in a focused class like a DeleteUtils or DeleteFiles. It might also be neat to make the class instantiable and configurable instead of having lots of options args. Gary On Fri, Dec 21, 2018, 09:58 Matt Sicker I've been

[IO] Robust file remover, other Windows-specific enhancements

2018-12-21 Thread Matt Sicker
I've been refactoring some IO code in Jenkins lately that are similar to the FileUtils delete family of methods. I had originally wanted to replace them with calls to FileUtils, but I noticed that we had a more sophisticated strategy for retrying deletes and other workarounds for (usually)

Re: [rng] Uniform big integers

2018-12-21 Thread Bernd Eckenfels
Hello, The actual discussion on the OpenJDK list turned out to be a wrong understanding and the simple case of generating random bytes was enough for BigInteger. However regarding RNG I can open requests, one would be for a RandomAdapter and the other would be to add a factory method for

Re: [rng] Uniform big integers

2018-12-21 Thread Gilles
On Thu, 20 Dec 2018 17:30:44 +0100, Gilles wrote: Hi. On Thu, 20 Dec 2018 15:15:55 +, Bernd Eckenfels wrote: Hello, I don’t know what the usecase is, it is motivated by a Bug about BigInteger(num, Random). I guess one of the users is actually the crypto usecase (starting with random

[GitHub] mina86 commented on issue #35: Turn CSVRecord into a List

2018-12-21 Thread GitBox
mina86 commented on issue #35: Turn CSVRecord into a List URL: https://github.com/apache/commons-csv/pull/35#issuecomment-449403846 FYI, you can do `StreamSupport.stream(record.splitterator(), false)` to convert CSVRecord into a stream though it’s less efficient in some cases (since the