Prefixed uint8array() with 'new ' to make everything work again.
This commit is contained in:
parent
b6e25bf1cd
commit
f5fab45662
|
@ -2,7 +2,7 @@ angular.module('webui.services.utils', [])
|
||||||
.factory('$utils', ['$filter', function(filter) {
|
.factory('$utils', ['$filter', function(filter) {
|
||||||
var rnd16 = (function() {
|
var rnd16 = (function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
var rndBuffer = Uint8Array(16);
|
var rndBuffer = new Uint8Array(16);
|
||||||
var rnd16Weak = function() {
|
var rnd16Weak = function() {
|
||||||
for (var i = 0, r; i < 16; i++) {
|
for (var i = 0, r; i < 16; i++) {
|
||||||
if (!(i % 0x3)) r = Math.random() * 0x100000000 | 0;
|
if (!(i % 0x3)) r = Math.random() * 0x100000000 | 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user