mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 10:17:57 +00:00
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
/**
|
|
* @name randomAsNumber
|
|
* @summary Creates a random number from random bytes.
|
|
* @description
|
|
* Returns a random number generated from the secure bytes.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { randomAsNumber } from '@pezkuwi/util-crypto';
|
|
*
|
|
* randomAsNumber(); // => <random number>
|
|
* ```
|
|
*/
|
|
export declare function randomAsNumber(): number;
|