main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
496 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | const assert = require("assert");
|
---|
4 | const node_test_1 = require("node:test");
|
---|
5 | const rng_js_1 = require("../rng.js");
|
---|
6 | (0, node_test_1.describe)('rng', () => {
|
---|
7 | (0, node_test_1.default)('Node.js RNG', () => {
|
---|
8 | const bytes = (0, rng_js_1.default)();
|
---|
9 | assert.equal(bytes.length, 16);
|
---|
10 | for (let i = 0; i < bytes.length; ++i) {
|
---|
11 | assert.equal(typeof bytes[i], 'number');
|
---|
12 | }
|
---|
13 | });
|
---|
14 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.