/*** * @module node-opcua-basic-types * * Cryptographically strong random bytes, from the one API that both runtimes agree on. * * This deliberately uses `globalThis.crypto.getRandomValues` rather than `node:crypto`: * node-opcua-basic-types sits at the bottom of the dependency graph and is pulled into * browser bundles, so it must not carry a Node built-in import that a bundler would have * to alias away, nor a dependency on a package whose browser entry drags in extra * modules. WebCrypto is a global in every browser and in Node.js since v18, so no * conditional export or `.browser` variant is needed here. */ /** * @param size number of bytes to draw * @returns a Buffer of `size` cryptographically strong random bytes */ export declare function cryptoRandomBytes(size: number): Buffer;