@Test public void testCreateId() throws Exception { IdGenerator guid = new PseudoRandomIdGenerator(); assertNotNull(guid.create(guid)); }
@Override public String create(Object msg) { byte[] bytes = new byte[8]; random().nextBytes(bytes); return getPrefix() + Conversion.byteArrayToBase64String(bytes); }
PseudoRandomIdGenerator implements IdGenerator { @Override public String create(Object msg) { byte[] bytes = new byte[8]; random().nextBytes(bytes); return getPrefix() + Conversion.byteArrayToBase64String(bytes); } }
PseudoRandomIdGenerator implements IdGenerator { @Override public String create(Object msg) { byte[] bytes = new byte[8]; random().nextBytes(bytes); return getPrefix() + Conversion.byteArrayToBase64String(bytes); } PseudoRandomIdGenerator();  PseudoRandomIdGenerator(String prefix);  PseudoRandomIdGenerator(String prefix, boolean useSecureRandom); }
PseudoRandomIdGenerator implements IdGenerator { @Override public String create(Object msg) { byte[] bytes = new byte[8]; random().nextBytes(bytes); return getPrefix() + Conversion.byteArrayToBase64String(bytes); } PseudoRandomIdGenerator();  PseudoRandomIdGenerator(String prefix);  PseudoRandomIdGenerator(String prefix, boolean useSecureRandom); @Override String create(Object msg); String getPrefix(); void setPrefix(String s); Boolean getUseSecureRandom(); void setUseSecureRandom(Boolean u); }
PseudoRandomIdGenerator implements IdGenerator { @Override public String create(Object msg) { byte[] bytes = new byte[8]; random().nextBytes(bytes); return getPrefix() + Conversion.byteArrayToBase64String(bytes); } PseudoRandomIdGenerator();  PseudoRandomIdGenerator(String prefix);  PseudoRandomIdGenerator(String prefix, boolean useSecureRandom); @Override String create(Object msg); String getPrefix(); void setPrefix(String s); Boolean getUseSecureRandom(); void setUseSecureRandom(Boolean u);  }