summaryrefslogtreecommitdiff
path: root/glib/guuid.c
Commit message (Collapse)AuthorAgeFilesLines
* guuid: fix shift operation to parse hex string in uuid_parse_string()Thomas Haller2021-05-031-1/+1
| | | | | | The actually parsed `@bytes` are not used because the only caller does not provide an output parameter to request them. So this bug had no effect in practice.
* Normalize C source files to end with exactly one newlineSimon McVittie2020-06-101-1/+0
| | | | | | | | | | | | | | | | | | | Some editors automatically remove trailing blank lines, or automatically add a trailing newline to avoid having a trailing non-blank line that is not terminated by a newline. To avoid unrelated whitespace changes when users of such editors contribute to GLib, let's pre-emptively normalize all files. Unlike more intrusive whitespace normalization like removing trailing whitespace from each line, this seems unlikely to cause significant issues with cherry-picking changes to stable branches. Implemented by: find . -name '*.[ch]' -print0 | \ xargs -0 perl -0777 -p -i -e 's/\n+\z//g; s/\z/\n/g' Signed-off-by: Simon McVittie <smcv@collabora.com>
* guuid: Document that g_uuid_string_random() is not securePhilip Withnall2019-11-251-1/+3
| | | | | | Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1947
* guuid: Remove support for curly braces and URN UUIDsBastien Nocera2017-02-061-22/+1
| | | | | | | | | | As we currently cannot generate UUIDs with curly braces, or as URNs, remove those from the possible valid UUIDs. We do this separately to make it easier to re-add later, should we want to enhance the coverage of our UUID functions. https://bugzilla.gnome.org/show_bug.cgi?id=639078
* guuid: Add UUID helper functions to GLibBastien Nocera2017-02-061-0/+231
Many UUID users will just need a random string, which can be generated simply by calling the function g_uuid_string_random(). Based on original patch by Marc-André Lureau <marcandre.lureau@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=639078