Browse Source

lint random.js

patch-2
Manuel Araoz 10 years ago
parent
commit
4e775264fe
  1. 9
      test/crypto/random.js

9
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]);
}
}
});
});

Loading…
Cancel
Save