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

Wrong uuid v5 when using namespaces #18

Open
aviadch opened this issue Nov 27, 2022 · 2 comments
Open

Wrong uuid v5 when using namespaces #18

aviadch opened this issue Nov 27, 2022 · 2 comments
Labels

Comments

@aviadch
Copy link

aviadch commented Nov 27, 2022

Using v5 in the internet:
image

Using v5 with this library:

import uuid from 'react-native-uuid';

//Not a real component - just a concept
const DummyComponent = () => {
  console.log({
    actualId: uuid.v5("orderId","f87ff660-ef24-47a6-b9a8-d64545dd6a4e"),
    expectedId: "02cd8985-1b72-5e1f-a597-392fc492ca68",
  });
}

Result is:

{
    "actualId": "31306430-6633-5136-b061-636236373634",
    "expectedId": "02cd8985-1b72-5e1f-a597-392fc492ca68"
}

I have look inside the V5 code and its look like you changing the variables for some reason. Any reason why?

@eugenehp eugenehp added the bug label Nov 29, 2022
@eugenehp
Copy link
Owner

Thanks for reporting, I'll take a look.
Can you share more details about your use case?

@eugenehp
Copy link
Owner

@aviadch which version of RN did you use and what was the device you used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants