mute-structs
Version:
NodeJS module providing an implementation of the LogootSplit CRDT algorithm
14 lines (13 loc) • 356 B
TypeScript
export declare const INT32_BOTTOM: number;
export declare const INT32_TOP = 2147483647;
/**
* @param n
* @return Is `n' an int32?
*/
export declare function isInt32(n: unknown): n is number;
/**
* @param l lower bound
* @param u upper bound
* @return random integer 32 in [l, u[
*/
export declare function randomInt32(l: number, u: number): number;