All files / src/util index.ts

100% Statements 7/7
50% Branches 1/2
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 92x 2x 2x 2x 42x   2x    
export function readomString(Ilength: number = 32) {
  const possibleStr: string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  const tempStrArr: string[] = [];
  for (let i = 0; i < length; i++) {
    tempStrArr.push(possibleStr.charAt(Math.floor(Math.random() * length)));
  }
  return tempStrArr.join('');
}