Skip to content

Commit

Permalink
Merge pull request #339 from crrodriguez/system_rng
Browse files Browse the repository at this point in the history
common: ask gcrypt to use the system RNG as source of entropy
  • Loading branch information
paolostivanin committed Jan 29, 2024
2 parents b31ec26 + b3b915c commit 22a1286
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ get_max_file_size_from_memlock (void)
gchar *
init_libs (gint32 max_file_size)
{
gcry_control(GCRYCTL_SET_PREFERRED_RNG_TYPE, GCRY_RNG_TYPE_SYSTEM);
if (!gcry_check_version ("1.8.0")) {
return g_strdup ("The required version of GCrypt is 1.8.0 or greater.");
}
Expand Down

0 comments on commit 22a1286

Please sign in to comment.