From 59c66a211aec3b0c9ff1db66a810184432f9ebcd Mon Sep 17 00:00:00 2001 From: robbielj Date: Fri, 14 Mar 2014 13:57:57 +0100 Subject: [PATCH] Update utils.js --- js/services/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/services/utils.js b/js/services/utils.js index fc74ad9..f2bc24e 100644 --- a/js/services/utils.js +++ b/js/services/utils.js @@ -11,7 +11,7 @@ angular.module('webui.services.utils', []) return rndBuffer; }; - if (!window.crypto || !crypto.getRandomValues) { + if (!window.crypto || !crypto.getRandomValues) { return rnd16Weak; } return function() { @@ -82,7 +82,7 @@ angular.module('webui.services.utils', []) return function() { var r = rnd16(); r[6] = (r[6] & 0xf) | 0x40; // Version 4 - r[8] = (r[8] & 0x3f) | 0x80; // Version 4y + r[8] = (r[8] & 0x3f) | 0x80; // Version 4y return bt[r[0]] + bt[r[1]] + bt[r[2]] + bt[r[3]] + "-" + bt[r[4]] + bt[r[5]] + "-" + bt[r[6]] + bt[r[7]] + "-" +