randomOwner static method

String randomOwner()

A random hex token.

Implementation

static String randomOwner() {
  Random random = _random;
  StringBuffer buffer = StringBuffer();
  for (int i = 0; i < 16; i++) {
    buffer.write(random.nextInt(256).toRadixString(16).padLeft(2, '0'));
  }
  return buffer.toString();
}