Skip to content
Prev Previous commit
crypto: reformat randomuuid options destructuring
Co-authored-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
rangoo94 and jasnell committed Feb 24, 2021
commit 61f67cf0e67e36a3a8ba1b1c244646049b46f780
4 changes: 3 additions & 1 deletion lib/internal/crypto/random.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ function getUnbufferedUUID() {
function randomUUID(options) {
if (options !== undefined)
validateObject(options, 'options');
const { disableEntropyCache = false } = options || {};
const {
disableEntropyCache = false,
} = options || {};

validateBoolean(disableEntropyCache, 'options.disableEntropyCache');

Expand Down