← Commit list

624066f0c

Denys Vlasenko
Denys Vlasenko
2018-11-23
SUCCESS Duration: 292s

Subject

tls: make tls_get_random() FAST_FUNC

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/tls.c+1 -1
@@ -337,7 +337,7 @@ static void dump_tls_record(const void *vp, int len)
# define dump_tls_record(...) ((void)0)
#endif
-void tls_get_random(void *buf, unsigned len)
+void FAST_FUNC tls_get_random(void *buf, unsigned len)
{
if (len != open_read_close("/dev/urandom", buf, len))
xfunc_die();
networking/tls.h+1 -1
@@ -80,7 +80,7 @@ typedef int16_t int16;
#define AES_BLOCK_SIZE 16
-void tls_get_random(void *buf, unsigned len);
+void tls_get_random(void *buf, unsigned len) FAST_FUNC;
#define matrixCryptoGetPrngData(buf, len, userPtr) (tls_get_random(buf, len), PS_SUCCESS)