Merge pull request #66 from 0pain/master

Prefixed uint8array() with 'new ' to make everything work again.
This commit is contained in:
hamza zia 2013-08-17 23:47:09 -07:00
commit 541a6ce723

View File

@ -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;