fix: function jsdoc description

This commit is contained in:
yassinedorbozgithub 2024-09-30 06:36:50 +01:00
parent 1183473aaf
commit 8383dc3c3e
2 changed files with 4 additions and 4 deletions

View File

@ -7,9 +7,9 @@
*/ */
/** /**
* Return a cryptographically secure random value between 0 and 1 is desired * Return a cryptographically secure random value between 0 and 1
* *
* @returns A cryptographically secure random value between 0 and 1 is desired * @returns A cryptographically secure random value between 0 and 1
*/ */
export const getRadom = (): number => export const getRadom = (): number =>
window.crypto.getRandomValues(new Uint32Array(1))[0] * Math.pow(2, -32); window.crypto.getRandomValues(new Uint32Array(1))[0] * Math.pow(2, -32);

View File

@ -7,9 +7,9 @@
*/ */
/** /**
* Return a cryptographically secure random value between 0 and 1 is desired * Return a cryptographically secure random value between 0 and 1
* *
* @returns A cryptographically secure random value between 0 and 1 is desired * @returns A cryptographically secure random value between 0 and 1
*/ */
export const getRadom = (): number => export const getRadom = (): number =>
window.crypto.getRandomValues(new Uint32Array(1))[0] * Math.pow(2, -32); window.crypto.getRandomValues(new Uint32Array(1))[0] * Math.pow(2, -32);