File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as os from 'os';
33import * as fs from 'fs' ;
44import { spawnSync } from 'child_process' ;
55import * as https from 'https' ;
6- import { randomInt , createHash } from 'crypto' ;
6+ import { createHash } from 'crypto' ;
77
88export const versionFile = path . join ( __dirname , 'generated' , 'version' ) ;
99export const shasumFile = path . join ( __dirname , 'generated' , 'sha256sums.txt' ) ;
@@ -198,7 +198,7 @@ export function downloadExecutable(
198198) : Promise < number > {
199199 return new Promise < number > ( function ( resolve ) {
200200 const options = new URL ( downloadUrl ) ;
201- const temp = path . join ( __dirname , randomInt ( 100000 ) . toString ( ) ) ;
201+ const temp = path . join ( __dirname , Date . now ( ) . toString ( ) ) ;
202202 const fileStream = fs . createWriteStream ( temp ) ;
203203
204204 const cleanupAfterError = ( exitCode : number ) => {
You can’t perform that action at this time.
0 commit comments