Skip to content
  • Edric Milaret's avatar
    dht: fix random generators on Windows · a5acbc5a
    Edric Milaret authored and Guillaume Roguez's avatar Guillaume Roguez committed
    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
    a5acbc5a