Re: [RNG] Allow exceptions from random generator constructors

2019-02-13 Thread Gilles Sadowski
Hello. Le mer. 13 févr. 2019 à 15:23, Alex Herbert a écrit : > > I am adding a new family of random generators in commons-rng. The > algorithms do not work when the seed state is all zeros [1]. What would > be best solution for an API. Here are some options: > > 1. Throw an exception. -1 The cor

[RNG] Allow exceptions from random generator constructors

2019-02-13 Thread Alex Herbert
I am adding a new family of random generators in commons-rng. The algorithms do not work when the seed state is all zeros [1]. What would be best solution for an API. Here are some options: 1. Throw an exception. 2. Fall-back to a known default seed that works. 3. Allow it and users beware (t