mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 06:36:38 +00:00

Export symbols from the bundled openssl for add-ons to link against. Fixes: https://github.com/nodejs/node-v0.x-archive/issues/4051 PR-URL: https://github.com/nodejs/node/pull/6274 Reviewed-By: James M Snell <jasnell@gmail.com>
9 lines
241 B
JavaScript
9 lines
241 B
JavaScript
'use strict';
|
|
|
|
require('../../common');
|
|
const assert = require('assert');
|
|
const binding = require('./build/Release/binding');
|
|
const bytes = new Uint8Array(1024);
|
|
assert(binding.randomBytes(bytes));
|
|
assert(bytes.reduce((v, a) => v + a) > 0);
|