mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 05:30:16 +08:00
13 lines
356 B
JavaScript
13 lines
356 B
JavaScript
import * as assert from 'assert';
|
|
import test, { describe } from 'node:test';
|
|
import rng from '../rng.js';
|
|
describe('rng', () => {
|
|
test('Node.js RNG', () => {
|
|
const bytes = rng();
|
|
assert.equal(bytes.length, 16);
|
|
for (let i = 0; i < bytes.length; ++i) {
|
|
assert.equal(typeof bytes[i], 'number');
|
|
}
|
|
});
|
|
});
|