### Question:
SecureRandomLongIdGenerator extends SecureRandomIdGenerator<Long> { @Override public Long generate() { return secureRandom.nextLong() >>> 1; }  @Override Long generate();  }### Answer:
@Test public void testGenerate() { SecureRandomLongIdGenerator generator = new SecureRandomLongIdGenerator(); int amount = 100; Set<Long> ids = Sets.newHashSetWithExpectedSize(amount); for (int i = 0; i < amount; i++) { Long id = generator.generate(); Assertions.assertTrue(id.longValue() > 0); System.out.println(id); ids.add(id); } Assertions.assertEquals(ids.size(), amount); }