Closed JesterSks closed 11 years ago
I have reproduced this problem on LispWorks with both hcl:save-image
and deliver
.
Wouldn't it be a solution if *uuid-random-state*
was lazily bound at runtime, instead of being initialized as a global variable? This is a pretty serious problem as any delivered application will generate the same UUIDs on each consequent launch.
Works fine, thanks!
Thanks for the feedback!
I recently used UUID in a compiled project using SBCL and found that the random state does not get changed when the application launches causing repeated v4 UUIDs. The following code recreates the error:
I can work around the issue by doing the following:
Which works but it feels wrong having to violate the implied private nature of uuid-random-state.