From 52e589e6d967edadc066bf508f29d3a43c152528 Mon Sep 17 00:00:00 2001 From: ezoheux <46251064+ezoheux@users.noreply.github.com> Date: Tue, 8 Jan 2019 05:02:11 -0500 Subject: [PATCH] Update Rand.php --- src/Rand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Rand.php b/src/Rand.php index 21dbb6b..c723281 100644 --- a/src/Rand.php +++ b/src/Rand.php @@ -55,9 +55,11 @@ public function getString(int $length = 16, string $keyspace = '0123456789abcdef * @param int $length The code length. * * @return int Returns the two factor code. + * + * @codeCoverageIgnore */ public function getTwoFactorCode(int $length = 6): int { - return intval($this->getString('0123456789')); + return intval($this->getString($length, '0123456789')); } }