Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.189.184.208
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
randombytes /
Delete
Unzip
Name
Size
Permission
Date
Action
.travis.yml
319
B
-rw-r--r--
2017-06-07 18:04
.zuul.yml
9
B
-rw-r--r--
2016-01-13 13:14
LICENSE
1.05
KB
-rw-r--r--
2017-06-07 18:04
README.md
575
B
-rw-r--r--
2016-01-13 13:14
browser.js
1.06
KB
-rw-r--r--
2018-01-10 18:09
index.js
47
B
-rw-r--r--
2016-01-13 13:14
package.json
1.7
KB
-rw-r--r--
2021-02-04 21:24
test.js
1.14
KB
-rw-r--r--
2016-03-02 17:02
Save
Rename
var test = require('tape') var randomBytes = require('./') test('sync', function (t) { t.plan(4) t.equals(randomBytes(0).length, 0, 'len: ' + 0) t.equals(randomBytes(3).length, 3, 'len: ' + 3) t.equals(randomBytes(30).length, 30, 'len: ' + 30) t.equals(randomBytes(300).length, 300, 'len: ' + 300) }) test('async', function (t) { t.plan(4) randomBytes(0, function (err, resp) { if (err) throw err t.equals(resp.length, 0, 'len: ' + 0) }) randomBytes(3, function (err, resp) { if (err) throw err t.equals(resp.length, 3, 'len: ' + 3) }) randomBytes(30, function (err, resp) { if (err) throw err t.equals(resp.length, 30, 'len: ' + 30) }) randomBytes(300, function (err, resp) { if (err) throw err t.equals(resp.length, 300, 'len: ' + 300) }) }) if (process.browser) { test('requesting to much throws', function (t) { t.plan(1) t.throws(function () { randomBytes(65537) }) }) test('requesting to much throws async', function (t) { t.plan(1) t.throws(function () { randomBytes(65537, function () { t.ok(false, 'should not get here') }) }) }) }