You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In US/CA, the final digit of a VIN is a check digit.
Faker currently just picks a random digit and finishes the VIN with that. As a result, about 70% of the time faker generates invalid VINs.
# Faker does not always generate valid VINs :(defvin_factory(_attrs)dovin=Faker.Vehicle.vin()vin|>Vin.valid_vin_string?()|>casedo:ok->vin{:error,_}->build(:vin)endend
The text was updated successfully, but these errors were encountered:
In US/CA, the final digit of a VIN is a check digit.
Faker currently just picks a random digit and finishes the VIN with that. As a result, about 70% of the time faker generates invalid VINs.
The text was updated successfully, but these errors were encountered: