getShortIdLength static method

int getShortIdLength(
  1. dynamic alphabetLength
)

Calculate the length of the shortened id.

Implementation

static int getShortIdLength(alphabetLength) =>
    (log(pow(2.0, 128.0)) / log(alphabetLength.toDouble())).ceil();