What is typeArray () and what problem does it solve?

Today, when checking the random function, I saw a post saying that random random numbers cannot be used as password types. It is recommended to use cryptoObj.getRandomValues (typedArray) . This method generates random password type data, but the parameter in and out is a typeArray type. I don"t quite understand which great god of typeArray, can tell me. Thank you very much!-sharp-sharp-sharp problem description

Jul.22,2021

TypedArray
is an integer-based TypedArray . It can be Int8Array , Uint8Array , Int16Array , Uint16Array , Int32Array , or Uint32Array . All elements in the array are overridden by random numbers. Note: the generated random numbers are stored on the typedArray array. )
RandomSource.getRandomValues ()-Web API API | MDN

search multiple documents.

Menu