UNPKG

tweetnacl-ts

Version:

Port of TweetNaCl cryptographic library to TypeScript (and ES6)

12 lines 330 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var crypto_1 = require("crypto"); function _randomBytes(x, n) { var v = crypto_1.randomBytes(n); for (var i = 0; i < n; i++) { x[i] = v[i]; v[i] = 0; } } exports._randomBytes = _randomBytes; //# sourceMappingURL=random.js.map