mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 01:40:28 +00:00
Remove useless <time.h> dependency
This commit is contained in:
parent
1f7445ad37
commit
41d7ef9569
1 changed files with 33 additions and 34 deletions
|
@ -72,7 +72,6 @@
|
|||
#include "third_party/mbedtls/sha512.h"
|
||||
#include "third_party/musl/netdb.h"
|
||||
#include "third_party/zlib/zlib.h"
|
||||
#include <time.h>
|
||||
|
||||
static int Rdpid(void) {
|
||||
#ifdef __x86_64__
|
||||
|
@ -830,9 +829,9 @@ int LuaVisualizeControlCodes(lua_State *L) {
|
|||
return LuaCoder(L, VisualizeControlCodes);
|
||||
}
|
||||
|
||||
|
||||
int LuaUuidV4(lua_State *L) {
|
||||
char v[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
||||
char v[] = {'0', '1', '2', '3', '4', '5', '6', '7',
|
||||
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
||||
static char uuid_str[37] = {0};
|
||||
|
||||
uuid_str[0] = v[rand() % 16];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue