randomHex static method

String randomHex({
  1. int bytes = 16,
})

Random hex string, e.g. for tokens (16 bytes = 32 chars). randomHex(bytes: 8)

Implementation

static String randomHex({int bytes = 16}) => _toHex(_randomBytes(bytes));