mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibTLS: Use Crypto::fill_with_secure_random
instead of PRNG
This commit is contained in:
parent
f55f507e56
commit
e222ccf028
Notes:
github-actions[bot]
2024-12-24 16:56:03 +00:00
Author: https://github.com/rmg-x
Commit: e222ccf028
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2996
Reviewed-by: https://github.com/ADKaster
3 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue