summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-09-28 17:42:23 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-09-30 14:25:48 +0200
commite764979d1d4a8a780c10f956f71886ae11339b5e (patch)
treec127270da3cabd331d34f89f7a93469bd362ebf9 /gui/src
parent1333c8968e86570b9205bca5d7abf1eacae5812e (diff)
downloadmullvadvpn-e764979d1d4a8a780c10f956f71886ae11339b5e.tar.xz
mullvadvpn-e764979d1d4a8a780c10f956f71886ae11339b5e.zip
Replace uuid module with node 16.5's crypto.randomUUID()
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 8c0a003074..741fd2b62d 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -1,4 +1,5 @@
import { exec, execFile } from 'child_process';
+import { randomUUID } from 'crypto';
import {
app,
BrowserWindow,
@@ -15,7 +16,6 @@ import os from 'os';
import * as path from 'path';
import { sprintf } from 'sprintf-js';
import util from 'util';
-import * as uuid from 'uuid';
import config from '../config.json';
import { closeToExpiry, hasExpired } from '../shared/account-expiry';
import { IApplication } from '../shared/application-types';
@@ -1289,7 +1289,7 @@ class ApplicationMain {
});
IpcMainEventChannel.problemReport.handleCollectLogs((toRedact) => {
- const id = uuid.v4();
+ const id = randomUUID();
const reportPath = this.getProblemReportPath(id);
const executable = resolveBin('mullvad-problem-report');
const args = ['collect', '--output', reportPath];