Explorar o código

add:添加随机生成的状态返回

Dozingfiretruck %!s(int64=4) %!d(string=hai) anos
pai
achega
adecdd61a3
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      app/port/luat_crypto_air101.c

+ 1 - 2
app/port/luat_crypto_air101.c

@@ -299,7 +299,6 @@ int l_crypto_cipher_xxx(lua_State *L, uint8_t flags) {
 }
 
 int luat_crypto_trng(char* buff, size_t len) {
-    tls_crypto_trng(buff, len);
-    return 0;
+    return tls_crypto_trng(buff, len);
 }