Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1364 from majamusan/patch-2
Browse files Browse the repository at this point in the history
Update Person.php
  • Loading branch information
fzaninotto authored Nov 30, 2017
2 parents bf9b93c + d7143ef commit f9fc13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/Provider/en_ZA/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function idNumber(\DateTime $birthdate = null, $citizen = true, $gender =
}
$sequenceDigits = str_pad(self::randomNumber(3), 3, 0, STR_PAD_BOTH);
$citizenDigit = ($citizen === true) ? '0' : '1';
$raceDigit = self::randomNumber(1);
$raceDigit = self:numberBetween(8, 9);

$partialIdNumber = $birthDateString . $genderDigit . $sequenceDigits . $citizenDigit . $raceDigit;

Expand Down

0 comments on commit f9fc13d

Please # to comment.