mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 14:59:34 +02:00
util/nvmutil: longer string in mkstemp
have A-Z too, for more randomness Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -308,6 +308,10 @@ typedef char static_assert_off_t_is_32[(sizeof(off_t) >= 4) ? 1 : -1];
|
|||||||
#define O_EXCL 0
|
#define O_EXCL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef O_CREAT
|
||||||
|
#define O_CREAT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef O_NONBLOCK
|
#ifndef O_NONBLOCK
|
||||||
#define O_NONBLOCK 0
|
#define O_NONBLOCK 0
|
||||||
#endif
|
#endif
|
||||||
@@ -3009,7 +3013,7 @@ x_i_mkstemp(char *template)
|
|||||||
unsigned long len;
|
unsigned long len;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
char ch[] = "abcdefghijklmnopqrstuvwxyz0123456789";
|
char ch[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||||
|
|
||||||
len = xstrxlen(template, PATH_LEN);
|
len = xstrxlen(template, PATH_LEN);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user