Rose
cba5d2a5c9
Use static declaration for array sizes to uuid functions
2024-08-13 12:21:03 -06:00
Rose
787a64f514
Use restrict to optimize sudo_uuid_to_string_v1
2024-08-12 13:10:37 -06:00
Rose
36cea6e5fd
sudo_uuid_to_string_v1's first argument should be const
...
uuid is not modified.
2024-08-12 09:20:05 -06:00
Todd C. Miller
e343e07543
Use #include <foo.h> instead of #include "foo.h" in most cases.
...
We rely on the include path to find many of these headers. It
especially doesn't make sense to use #include "foo.h" for headers
in the top-level include directory.
2023-09-25 10:13:28 -06:00
Rose
e54ba33ea0
Avoid compiler casting warnings by assigning to the same type where possible
...
This saves instructions that are related to casting as well as compiler warnings.
2023-06-28 17:25:26 -04:00
Todd C. Miller
9dd6304940
sudo_uuid_create: no longer need a union for the uuid.
2021-10-20 07:55:35 -06:00
Todd C. Miller
4bff82cab4
Fix random uuid generation, no need to convert between byte order.
...
Also add regression test.
2021-08-31 19:53:28 -06:00
Todd C. Miller
dd88460800
We no longer need to include headers we don't use for sudo*.h files.
...
Previously we needed to include headers required by the various
sudo*h files. Now those files are more self-sufficient and we
should only include headers needed by code in the various .c files.
2020-05-18 06:47:04 -06:00
Todd C. Miller
ed294b8283
Add code to generate universally unique identifiers.
...
We create type 4, variant 1 uuids (random).
2020-01-30 13:12:25 -07:00