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

GUIDs are not subject to randomseed setting #30

Open
dchassin opened this issue Mar 22, 2023 · 0 comments
Open

GUIDs are not subject to randomseed setting #30

dchassin opened this issue Mar 22, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dchassin
Copy link
Member

Problem description

GUIDs are generated using random number generators, but they do not seed from the global random number generator state.

Steps to reproduce

  1. Create the following model in test.glm:
print ${GUID}
  1. Run it twice:3.
shell$ gridlabd -D randomseed=1 /tmp/test.glm
/tmp/test.glm(1): f9493e71-8fa8-4f76-cab6-82e71391b5e5
shell$ gridlabd -D randomseed=1 /tmp/test.glm
/tmp/test.glm(1): d6687571-53e7-4921-20b0-162cd85e395d

Expected behavior

The result should be:

shell$ gridlabd -D randomseed=1 /tmp/test.glm
/tmp/test.glm(1): f9493e71-8fa8-4f76-cab6-82e71391b5e5
shell$ gridlabd -D randomseed=1 /tmp/test.glm
/tmp/test.glm(1): f9493e71-8fa8-4f76-cab6-82e71391b5e5
@dchassin dchassin added the bug Something isn't working label Mar 22, 2023
@dchassin dchassin self-assigned this Mar 22, 2023
@dchassin dchassin transferred this issue from arras-energy/gridlabd-old Sep 27, 2023
@dchassin dchassin moved this to Todo in Next minor update Sep 27, 2023
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
Status: Issue
Development

No branches or pull requests

1 participant