mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 22:49:43 +00:00
Remove u32
It's better to use types from the standard library.
This commit is contained in:
185 files changed
+878
-938
No files matched your search
+1
-2
@@ -19,7 +19,6 @@
|
||||
#include "lib/code_annotation.h"
|
||||
#include "lib/secure_crt.h"
|
||||
#include "lib/sysdep/sysdep.h"
|
||||
#include "lib/types.h"
|
||||
#include "ps/CStr.h"
|
||||
|
||||
#include <cstddef>
|
||||
@@ -36,7 +35,7 @@ CStr ps_generate_guid(void)
|
||||
CStr guid;
|
||||
for (size_t i = 0; i < 2; ++i)
|
||||
{
|
||||
u32 r = 0;
|
||||
std::uint32_t r = 0;
|
||||
sys_generate_random_bytes(reinterpret_cast<std::uint8_t*>(&r), sizeof(r));
|
||||
char buf[32];
|
||||
sprintf_s(buf, ARRAY_SIZE(buf), "%08X", r);
|
||||
|
||||
Reference in new issue
Block a user