Le 21/08/2012 16:15, Gilles Sadowski a écrit :
> Hi.
> 
>> [...]
>>
>> Added: 
>> commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
>> URL: 
>> http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java?rev=1375192&view=auto
>> ==============================================================================
>> --- 
>> commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
>>  (added)
>> +++ 
>> commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
>>  Mon Aug 20 19:53:57 2012
>> [...]
>> + *
>> + * @version $Id$
>> + */
>> +public class RandomDataGenerator implements RandomData, Serializable {
>> +
>> +    /** Serializable version identifier */
>> +    private static final long serialVersionUID = -626730818244969716L;
>> +
>> +    /** underlying random number generator */
>> +    private RandomGenerator rand = null;
>> +
>> +    /** underlying secure random number generator */
>> +    private SecureRandom secRand = null;
> 
> Should this class be "Serializable"?

Yes!
This allows to save the state of a generator and restart it at the exact
same state later on.

Luc

> 
> 
> Gilles
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to