static generateSlug(base, options = {}) {
    const {maxLength = 40, randomLength = 0, prandom} = options;
    if (maxLength <= randomLength + 1) throw new Error('Random length is too long');

    let slug = base
      .toLowerCase()
      .trim()
      .replace(/[^a-z0-9.]+/g, '-');
    const baseLength = randomLength ? maxLength - randomLength - 1 : maxLength;
    slug = slug.slice(0, baseLength);

    if (randomLength) slug += '-';
    for (let i = 0; i < randomLength; i++) {
      slug += PRandom.toAlphanumeric(prandom ? prandom.next() : Math.random());
    }

    return slug;
  }
@param {string} base
@param {{randomLength?: number, maxLength?: number, prandom?: import('@lhci/utils/src/seed-data/prandom')}} [options]