BetterDiscordApp-rauenzi/renderer/src/polyfill/crypto.js

9 lines
193 B
JavaScript

import Remote from "./remote";
export default {
...Remote.crypto,
// Wrap it in Buffer
randomBytes(length) {
return Buffer.from(Remote.crypto.randomBytes(length));
}
};