aboutsummaryrefslogtreecommitdiff
path: root/src/node-fallbacks/crypto.js
blob: 7b72c4ea107383323f53466de16057e8f929b3be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
export * from "crypto-browserify";

// we deliberately reference crypto. directly here because we want to preserve the This binding
export var getRandomValues = (array) => {
  return crypto.getRandomValues(array);
};

export var randomUUID = () => {
  return crypto.randomUUID();
};