mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 06:36:55 +01:00
al-testing-review.md's cue presented GenerateRandomCodeWithLength and GenerateRandomCode20 as interchangeable options for "a shorter field needing real verified uniqueness." They aren't: verified against LibraryUtility.Codeunit.al, GenerateRandomCode20 truncates GenerateGUID()'s sequential value down to the target field's length by keeping the leftmost (slowest-changing) characters via PadStr, so its retry loop against a field shorter than 20 can churn through the same truncated prefix for a long time. GenerateRandomCodeWithLength has no such problem (it generates exactly the requested length of random text). The knowledge article itself already scoped GenerateRandomCode20 to Code[20] correctly - only the skill cue needed narrowing to match. |
||
|---|---|---|
| .. | ||
| al-appsource-review.md | ||
| al-breaking-changes-review.md | ||
| al-code-review.md | ||
| al-data-modeling-review.md | ||
| al-error-handling-review.md | ||
| al-events-review.md | ||
| al-finance-review.md | ||
| al-interfaces-review.md | ||
| al-performance-review.md | ||
| al-privacy-review.md | ||
| al-query-review.md | ||
| al-reporting-review.md | ||
| al-scm-review.md | ||
| al-security-review.md | ||
| al-style-review.md | ||
| al-telemetry-review.md | ||
| al-testing-review.md | ||
| al-ui-review.md | ||
| al-upgrade-review.md | ||
| al-web-services-review.md | ||