arturmkrtchyan / iban4j

A Java library for generation and validation of the International Bank Account Numbers (IBAN ISO_13616) and Business Identifier Codes (BIC ISO_9362).
http://iban4j.org
Apache License 2.0
270 stars 124 forks source link

make IBAN random generation independent per IBAN #126

Closed aSemy closed 7 months ago

aSemy commented 7 months ago

This PR makes IBAN random generation independent per IBAN.

This should prevent problems in the future where an IBAN Structure is modified.

Adjusting the behaviour like this is just one option to fix it, the other would be to update the tests (although I'm not sure how that can be done...).

Summary

Verification

I had a quick play around to verify it by adjusting the structure of GL and verifying only one of the ibanBuilderConstructionSeeded() tests failed. I'd appreciate it if you could take a more thorough look :)

Fix #91