LibTLS: Use Crypto::fill_with_secure_random instead of PRNG

This commit is contained in:
rmg-x 2024-12-20 10:33:43 -06:00 committed by Ali Mohammad Pur
commit e222ccf028
Notes: github-actions[bot] 2024-12-24 16:56:03 +00:00
3 changed files with 7 additions and 4 deletions

View file

@ -11,13 +11,14 @@
#include <LibCore/Timer.h>
#include <LibCrypto/ASN1/DER.h>
#include <LibCrypto/SecureRandom.h>
#include <LibTLS/TLSv12.h>
namespace TLS {
ByteBuffer TLSv12::build_hello()
{
fill_with_random(m_context.local_random);
::Crypto::fill_with_secure_random(m_context.local_random);
auto packet_version = (u16)m_context.options.version;
auto version = (u16)m_context.options.version;