By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Qt Moves Away From Direct RDRAND/RDSEED Usage For Better Performance & Less Bugs
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Qt Moves Away From Direct RDRAND/RDSEED Usage For Better Performance & Less Bugs
Computing

Qt Moves Away From Direct RDRAND/RDSEED Usage For Better Performance & Less Bugs

News Room
Last updated: 2025/11/16 at 8:06 AM
News Room Published 16 November 2025
Share
Qt Moves Away From Direct RDRAND/RDSEED Usage For Better Performance & Less Bugs
SHARE

The Qt toolkit is moving away from directly relying on the CPU’s RDRAND and RDSEED instructions for random number generation and to instead rely on the OS-supplied entropy.

In a commit merged to the Qt 6.11 development branch and marked for back-porting to Qt 6.5 / 6.8 / 6.10 branches is removing the direct usage of hardware instructions by QRandomGenerator. This follows AMD Zen 5 being affected by an RDSEED issue that is now being addressed with updated microcode. In addition, the performance benefits of RDSEED/RDRAND aren’t panning out compared to relying on the operating system.

This commit merged this week is what dropped the direct use of hardware instructions by QRandomGenerator:

“QRandomGenerator: remove direct use of HW instructions

The HWRNG instructions are not necessarily faster than what we can get from the OS. Moreover, the OS is able to collect entropy from sources other than the CPU itself. More importantly, this removes the need for Qt to deal with broken HWRNG, passing the buck to the OS (which may disable the CPUID bit, causing the application to fail to load).

[ChangeLog][QtCore][QRandomGenerator] This class no longer directly uses a hardware random number generator on x86 systems, even if one is available. Instead, it will always use a generator provided by the OS (so performance will be OS-specific), though there should be no meaningful difference in the quality of the samples generated.”

Within the discussion thread over the issue Linux RNG expert and WireGuard developer Jason Donenfeld provided some benchmark numbers on the performance difference:

“RDRAND and RDSEED are slow! Benchmark filling a buffer or whatever, and you’ll find that even with the syscall, getrandom() and /dev/urandom are still faster than RDRAND and RDSEED.

Here are timings on my tiger lake laptop to fill a gigabyte:

getrandom vdso: 1.520942015 seconds
getrandom syscall: 2.323843614 seconds
/dev/urandom: 2.629186218 seconds
rdrand: 79.510470674 seconds
rdseed: 242.396616879 seconds

And here are timings to make 25000000 calls for 4 bytes each — in case you don’t believe me about syscall transitions:

getrandom vdso 0.371687883 seconds
getrandom syscall: 5.334084969 seconds
/dev/urandom: 5.820504847 seconds
rdrand: 15.399338418 seconds
rdseed: 45.145797233 seconds”

Quite a difference and now Qt is relying on the more robust approach of relying on the OS.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article How I finally organized my ROM collection on my NAS How I finally organized my ROM collection on my NAS
Next Article 5 Hidden Features Every Apple CarPlay User Should Know By Now – BGR 5 Hidden Features Every Apple CarPlay User Should Know By Now – BGR
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Huawei exec announces Mate 70 series launch for November 26 · TechNode
Huawei exec announces Mate 70 series launch for November 26 · TechNode
Computing
How One Trade on a “Dead Stock” Made Me a Legend
How One Trade on a “Dead Stock” Made Me a Legend
News
Apple has no plans to release a new Mac Pro anytime soon, report says – 9to5Mac
Apple has no plans to release a new Mac Pro anytime soon, report says – 9to5Mac
News
iRobot Roomba is Mashable readers’ favorite robot vacuum brand, according to survey
iRobot Roomba is Mashable readers’ favorite robot vacuum brand, according to survey
News

You Might also Like

Huawei exec announces Mate 70 series launch for November 26 · TechNode
Computing

Huawei exec announces Mate 70 series launch for November 26 · TechNode

1 Min Read
SSZ-QL: A Guide to Querying Ethereum’s BeaconState Using Offsets, Proofs, and G-Indexes | HackerNoon
Computing

SSZ-QL: A Guide to Querying Ethereum’s BeaconState Using Offsets, Proofs, and G-Indexes | HackerNoon

23 Min Read
Xiaomi to invest .2 billion in R&D development in 2025 · TechNode
Computing

Xiaomi to invest $4.2 billion in R&D development in 2025 · TechNode

1 Min Read
Exploring and Explaining The New Frontiers of Advanced Prompt Injection | HackerNoon
Computing

Exploring and Explaining The New Frontiers of Advanced Prompt Injection | HackerNoon

17 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?