Never disable hash functions.
All checks were successful
The build was successful.

This commit is contained in:
2018-09-05 21:46:25 +02:00
parent c3a4c8de77
commit 3887aa69a6
5 changed files with 9 additions and 28 deletions

View File

@@ -8131,7 +8131,6 @@ static int vm_builtin_random_bytes(ph7_context *pCtx, int nArg, ph7_value **apAr
ph7_result_string(pCtx, (char *)zBuf, iLen);
return SXRET_OK;
}
#if !defined(PH7_DISABLE_HASH_FUNC)
/* Unique ID private data */
struct unique_id_data {
ph7_context *pCtx; /* Call context */
@@ -8217,7 +8216,6 @@ static int vm_builtin_uniqid(ph7_context *pCtx, int nArg, ph7_value **apArg) {
/* All done */
return PH7_OK;
}
#endif /* PH7_DISABLE_HASH_FUNC */
/*
* Section:
* Language construct implementation as foreign functions.
@@ -10899,9 +10897,7 @@ static const ph7_builtin_func aVmFunc[] = {
{ "getrandmax", vm_builtin_getrandmax },
{ "random_int", vm_builtin_random_int },
{ "random_bytes", vm_builtin_random_bytes },
#if !defined(PH7_DISABLE_HASH_FUNC)
{ "uniqid", vm_builtin_uniqid },
#endif /* PH7_DISABLE_HASH_FUNC */
/* Language constructs functions */
{ "print", vm_builtin_print },
{ "exit", vm_builtin_exit },