From aa6741c2979d51e16ca21a9c3b64e166202ec748 Mon Sep 17 00:00:00 2001 From: Vadim Kantorov Date: Sun, 4 Oct 2020 22:06:35 +0200 Subject: [PATCH] Alias uuid_generate_random as uuid_generate Fixes https://github.com/emscripten-core/emscripten/issues/12093 --- src/library_uuid.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/library_uuid.js b/src/library_uuid.js index fc27dc5ed368d..f7926cccdd6b7 100644 --- a/src/library_uuid.js +++ b/src/library_uuid.js @@ -66,7 +66,10 @@ mergeInto(LibraryManager.library, { uuid[8] = (uuid[8] & 0x7F) | 0x80; writeArrayToMemory(uuid, out); }, - + + // If uuid_generate is secure and random enough, we can just uuid_generate_random + uuid_generate_random : 'uuid_generate', + // Compares the value of the supplied 'compact' UUID variable uu to the NULL value. // If the value is equal to the NULL UUID, 1 is returned, otherwise 0 is returned. uuid_is_null: function(uu) {