Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typia.random generate wrong length string value. #758

Closed
rojiwon123 opened this issue Aug 13, 2023 · 0 comments
Closed

typia.random generate wrong length string value. #758

rojiwon123 opened this issue Aug 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rojiwon123
Copy link
Contributor

Bug Report

📝 Summary

  • Typia Version: 4.2.1
  • generate 32 length string value
  • generate string value larger than 32 length.

Write detailed description in here.

⏯ Playground Link

Example Link

https://typia.io/playground/?script=JYWwDg9gTgLgBDAnmYBDOAzKERwERIqp4DcAUGcAHYwCmUGqAxrXAMoxTUDmcA3mThC4AegBUYwcLhi4AARDUAMrSrcYACzgBmAExThshagAeKtZp37pMkQbgBrWogBccAM6ce5AL4UmEFSejs5wALwIyGgAdFCoVAAmOAA8HFxqAHwAFACU0U6I5GQBQRAANrTRZRDcWQUANCGIVarqGjnkQA

💻 Code occuring the bug

import typia from "typia";

interface String {
    /**
     * @minLength 32
     * @maxLength 32
     */
    key: string;
}

const key = typia.random<String>().key;

console.log(key, key.length);
// expected length: 32
// actual length: over than 32 (32~36)
@samchon samchon self-assigned this Aug 13, 2023
@samchon samchon added the bug Something isn't working label Aug 13, 2023
samchon added a commit that referenced this issue Aug 13, 2023
Fix #758 - wrong fixed length bug on `random` function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants