src/lib/Types.js
/**
   * Generates a random hash value.
   * @param {TypeHashInit=} init
   */
Generates a random hash value.
Generates a random hash value .
hash(init={}) {
    const { length=40, casing='lower' } = init;
    const pool = casing === 'upper' ? HEX_POOL.toUpperCase() : HEX_POOL;
    return this.string(length, pool);
  }
hash ( init = { } ) { const { length = 40 , casing = 'lower' } = init ; const pool = casing === 'upper' ? HEX_POOL . toUpperCase ( ) : HEX_POOL ; return this . string ( length , pool ) ; }
Generates a random hash value.
Generates a random hash value .