diff options
Diffstat (limited to 'core/src/xmake/hash/rand128.c')
| -rw-r--r-- | core/src/xmake/hash/rand128.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/xmake/hash/rand128.c b/core/src/xmake/hash/rand128.c index 1e1f34fde..625e75326 100644 --- a/core/src/xmake/hash/rand128.c +++ b/core/src/xmake/hash/rand128.c @@ -22,8 +22,8 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * trace */ -#define TB_TRACE_MODULE_NAME "rand128" -#define TB_TRACE_MODULE_DEBUG (0) +#define TB_TRACE_MODULE_NAME "rand128" +#define TB_TRACE_MODULE_DEBUG (0) /* ////////////////////////////////////////////////////////////////////////////////////// * includes @@ -33,14 +33,14 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * implementation */ -tb_int_t xm_hash_rand128(lua_State* lua) -{ - // check +tb_int_t xm_hash_rand128(lua_State *lua) { tb_assert_and_check_return_val(lua, 0); - static union { tb_byte_t b[16]; tb_uint64_t word[2]; } s_seed = {0}; - if (!s_seed.word[0] && !s_seed.word[1]) - { + static union { + tb_byte_t b[16]; + tb_uint64_t word[2]; + } s_seed = { 0 }; + if (!s_seed.word[0] && !s_seed.word[1]) { s_seed.word[0] = (tb_uint64_t)tb_uclock(); s_seed.word[1] = (tb_uint64_t)tb_uclock(); } |
