Skip to content

Commit

Permalink
Add return descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Sep 11, 2023
1 parent aa9b8d4 commit 274bef5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/NumberUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import CONST from '../CONST';

/**
* Generates a random positive 64 bit numeric string by randomly generating the left, middle, and right parts and concatenating them. Used to generate client-side ids.
*
* @returns string representation of a randomly generated 64 bit signed integer
*/
function rand64(): string {
// Max 64-bit signed:
Expand Down Expand Up @@ -48,6 +50,8 @@ function generateHexadecimalValue(num: number): string {
/**
* Generates a random integer between a and b
* It's and equivalent of _.random(a, b)
*
* @returns random integer between a and b
*/
function generateRandomInt(a: number, b: number): number {
const lower = Math.ceil(Math.min(a, b));
Expand Down

0 comments on commit 274bef5

Please sign in to comment.