Skip to content
Snippets Groups Projects
Commit a5acbc5a authored by Edric Milaret's avatar Edric Milaret Committed by Guillaume Roguez
Browse files

dht: fix random generators on Windows

This patch should fix DHT calls on Window platform.

Replacing random_device (deterministic on Windows because of
no /dev/urandom/ support) with a default_random_engine with a time seed.
It's a less secure way of doing it (vulnerable to time attack).

Refs #72538
Refs #72700

Change-Id: I259f80144eeee6732cc969ecb224544a53d7ccf1
parent f4742909
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment