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

Apple Is Planning Cheaper Macs That Compete With Budget Chromebooks and PCs, Report Says
Apple Is Planning Cheaper Macs That Compete With Budget Chromebooks and PCs, Report Says
News
Alibaba shares fall after Q4 earnings miss expectations despite AI and e-commerce growth · TechNode
Alibaba shares fall after Q4 earnings miss expectations despite AI and e-commerce growth · TechNode
Computing
I don't care about the S26 Ultra, but I really want Samsung to finally make the S26 Plus great
I don't care about the S26 Ultra, but I really want Samsung to finally make the S26 Plus great
News
Early Black Friday Deals on Laptops With Saving Up to 34% on Top Brands Like Apple, Dell, HP, Lenovo
Early Black Friday Deals on Laptops With Saving Up to 34% on Top Brands Like Apple, Dell, HP, Lenovo
News

You Might also Like

Alibaba shares fall after Q4 earnings miss expectations despite AI and e-commerce growth · TechNode
Computing

Alibaba shares fall after Q4 earnings miss expectations despite AI and e-commerce growth · TechNode

1 Min Read
Fund at First Pitch finale at XIN Summit: a warm, child-focused AI interactive fish tank for early education · TechNode
Computing

Fund at First Pitch finale at XIN Summit: a warm, child-focused AI interactive fish tank for early education · TechNode

4 Min Read
NVIDIA Highlights The Shortcomings With Wayland Screencasting
Computing

NVIDIA Highlights The Shortcomings With Wayland Screencasting

1 Min Read
GCC Developer Discovers “Our Codebase Isn’t Fully C++20 Ready”
Computing

GCC Developer Discovers “Our Codebase Isn’t Fully C++20 Ready”

2 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?