public function testAltGeneratorIsRandomWithCorrectLength() { $source = Math\Rand::getAlternativeGenerator(); $rand = $source->generate(32); $this->assertTrue(32 === strlen($rand)); $rand2 = $source->generate(32); $this->assertNotEquals($rand, $rand2); }