From 4e775264fe6392aa11af11f2d93250e30e785568 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 19 Dec 2014 19:32:26 -0300 Subject: [PATCH] lint random.js --- test/crypto/random.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/crypto/random.js b/test/crypto/random.js index 4a7c039..cf08bc2 100644 --- a/test/crypto/random.js +++ b/test/crypto/random.js @@ -21,11 +21,14 @@ describe('Random', function() { it('should generate 100 8 byte buffers in a row that are not equal', function() { var hexs = []; - for (var i = 0; i < 100; i++) + for (var i = 0; i < 100; i++) { hexs[i] = Random.getRandomBuffer(8).toString('hex'); - for (i = 0; i < 100; i++) - for (var j = i + 1; j < 100; j++) + } + for (i = 0; i < 100; i++) { + for (var j = i + 1; j < 100; j++) { hexs[i].should.not.equal(hexs[j]); + } + } }); });