@Test public void createRandom() { ExtendedPanId pan1 = ExtendedPanId.createRandom(); ExtendedPanId pan2 = ExtendedPanId.createRandom(); assertNotEquals(pan1, pan2); }
public static ExtendedPanId createRandom() { int key[] = new int[8]; for (int cnt = 0; cnt < 8; cnt++) { key[cnt] = (int) Math.floor((Math.random() * 255)); } return new ExtendedPanId(key); }
ExtendedPanId { public static ExtendedPanId createRandom() { int key[] = new int[8]; for (int cnt = 0; cnt < 8; cnt++) { key[cnt] = (int) Math.floor((Math.random() * 255)); } return new ExtendedPanId(key); } }
ExtendedPanId { public static ExtendedPanId createRandom() { int key[] = new int[8]; for (int cnt = 0; cnt < 8; cnt++) { key[cnt] = (int) Math.floor((Math.random() * 255)); } return new ExtendedPanId(key); } ExtendedPanId();  ExtendedPanId(BigInteger panId);  ExtendedPanId(String panId);  ExtendedPanId(int[] panId); }
ExtendedPanId { public static ExtendedPanId createRandom() { int key[] = new int[8]; for (int cnt = 0; cnt < 8; cnt++) { key[cnt] = (int) Math.floor((Math.random() * 255)); } return new ExtendedPanId(key); } ExtendedPanId();  ExtendedPanId(BigInteger panId);  ExtendedPanId(String panId);  ExtendedPanId(int[] panId); int[] getValue(); boolean isValid(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static ExtendedPanId createRandom(); }
ExtendedPanId { public static ExtendedPanId createRandom() { int key[] = new int[8]; for (int cnt = 0; cnt < 8; cnt++) { key[cnt] = (int) Math.floor((Math.random() * 255)); } return new ExtendedPanId(key); } ExtendedPanId();  ExtendedPanId(BigInteger panId);  ExtendedPanId(String panId);  ExtendedPanId(int[] panId); int[] getValue(); boolean isValid(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static ExtendedPanId createRandom();  }