Skip to content

fix uuid genration#339

Open
michaelolbrich wants to merge 2 commits into
pengutronix:masterfrom
michaelolbrich:uuid
Open

fix uuid genration#339
michaelolbrich wants to merge 2 commits into
pengutronix:masterfrom
michaelolbrich:uuid

Conversation

@michaelolbrich

Copy link
Copy Markdown
Member

The string formatting was broken and the reproducible uuids not reproducible across architectures.

%x has not 'u' modifier. So %04ux was interpreted as an unsigned integer
followed by a literal 'x'.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
The order in which the arguments are evaluated seems to differ depending
on the architecture. Since random32() is stateful, the result may be
different.
Use in the reverse order which seems to match what x86_64 does.

Fixes: pengutronix#335
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant