cryptojs: fixed tests

This commit is contained in:
Igor Oleinikov
2013-12-22 14:47:48 +04:00
parent 4fce4a3a03
commit a5ed7728b1
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -67,9 +67,9 @@ YUI.add('algo-rabbit-test', function (Y) {
// Replace random method with one that returns a predictable value
C.lib.WordArray.random = function (nBytes) {
var words = [];
var words: number[] = [];
for (var i = 0; i < nBytes; i += 4) {
words.push([0x11223344]);
words.push(0x11223344);
}
return C.lib.WordArray.create(words, nBytes);