Skip to content

Commit dd86fe9

Browse files
committed
updated crypto string generation
1 parent 1505122 commit dd86fe9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async function run(argv:AnyObject) {
200200

201201
}
202202
}
203-
export let resource_type = ({} = res);
203+
//export let resource_type = ({} = res);
204204
export let stackNames: any = stack_resource_Name;
205205
let moreStack;
206206
let customStacks:AnyObject;

cli-main/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,5 +561,5 @@ export let samValidate=function(){
561561
}
562562
export let makeid =function (length) {
563563
const crypto = require('crypto');
564-
return String.fromCharCode(...crypto.randomBytes(2))
564+
return (crypto.randomBytes(1).toString("base64url").replace(/[0-9]/g, 'd')).toLowerCase();
565565
}

0 commit comments

Comments
 (0)