/** * @param rnd Random number generator to use for generating UUIDs; if null, * shared default generator is used. Note that it is strongly recommend to * use a <b>good</b> (pseudo) random number generator; for example, JDK's * {@link SecureRandom}. */ public RandomBasedGenerator(Random rnd) { if (rnd == null) { rnd = LazyRandom.sharedSecureRandom(); _secureRandom = true; } else { _secureRandom = (rnd instanceof SecureRandom); } _random = rnd; }