����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.137.163.99 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/app6/node_modules/random-bytes/ |
Upload File : |
# random-bytes [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] Generate strong pseudo-random bytes. This module is a simple wrapper around the Node.js core `crypto.randomBytes` API, with the following additions: * A `Promise` interface for environments with promises. * For Node.js versions that do not wait for the PRNG to be seeded, this module will wait a bit. ## Installation ```sh $ npm install random-bytes ``` ## API ```js var randomBytes = require('random-bytes') ``` ### randomBytes(size, callback) Generates strong pseudo-random bytes. The `size` argument is a number indicating the number of bytes to generate. ```js randomBytes(12, function (error, bytes) { if (error) throw error // do something with the bytes }) ``` ### randomBytes(size) Generates strong pseudo-random bytes and return a `Promise`. The `size` argument is a number indicating the number of bytes to generate. **Note**: To use promises in Node.js _prior to 0.12_, promises must be "polyfilled" using `global.Promise = require('bluebird')`. ```js randomBytes(18).then(function (string) { // do something with the string }) ``` ### randomBytes.sync(size) A synchronous version of above. ```js var bytes = randomBytes.sync(18) ``` ## License [MIT](LICENSE) [npm-image]: https://img.shields.io/npm/v/random-bytes.svg [npm-url]: https://npmjs.org/package/random-bytes [node-version-image]: https://img.shields.io/node/v/random-bytes.svg [node-version-url]: http://nodejs.org/download/ [travis-image]: https://img.shields.io/travis/crypto-utils/random-bytes/master.svg [travis-url]: https://travis-ci.org/crypto-utils/random-bytes [coveralls-image]: https://img.shields.io/coveralls/crypto-utils/random-bytes/master.svg [coveralls-url]: https://coveralls.io/r/crypto-utils/random-bytes?branch=master [downloads-image]: https://img.shields.io/npm/dm/random-bytes.svg [downloads-url]: https://npmjs.org/package/random-bytes