mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-17 11:50:22 +08:00
cryptojs: fixed tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user