meta: rename to fx
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "misc.h"
|
||||
|
||||
#include <blue/core/random.h>
|
||||
#include <fx/core/random.h>
|
||||
|
||||
void z__b_io_generate_tmp_filename(char *out, size_t len)
|
||||
void z__fx_io_generate_tmp_filename(char *out, size_t len)
|
||||
{
|
||||
static const char *alphabet
|
||||
= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
||||
@@ -10,10 +10,10 @@ void z__b_io_generate_tmp_filename(char *out, size_t len)
|
||||
"89+=-_.";
|
||||
static const size_t alphabet_len = 67;
|
||||
|
||||
b_random_ctx *ctx = b_random_global_ctx();
|
||||
fx_random_ctx *ctx = fx_random_global_ctx();
|
||||
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
int v = b_random_next_int64(ctx) % alphabet_len;
|
||||
int v = fx_random_next_int64(ctx) % alphabet_len;
|
||||
out[i] = alphabet[v];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user