diff --git a/SimpleTest.php b/SimpleTest.php
index <HASH>..<HASH> 100644
--- a/SimpleTest.php
+++ b/SimpleTest.php
@@ -127,9 +127,14 @@ class SimpleTest extends \PHPUnit_Framework_TestCase
     }
 
     public function testDifferentIvGeneratedOnEachRun() {
-        $iv = $this->_instance->generateIv();
-        $secondIv = $this->_instance->generateIv();
+        $expected = 20;
+        $ivs = array();
+        for ($i = 1; $i <= $expected; $i++) {
+            $ivs[] = $this->_instance->generateIv();
+        }
+
+        $duplicatesRemoved = array_values($ivs);
 
-        $this->assertNotSame($iv, $secondIv);
+        $this->assertCount($expected, $duplicatesRemoved);
     }
 }
Better test for ensuring IV generation is different

Runs <I> iterations instead of 2 and ensures all outcomes are unique