The article discusses the security risks associated with using the Random class in .NET to generate random numbers and recommends using the RandomNumberGenerator instead, which provides more secure and higher-quality random number generation suitable for cryptographic operations and security-critical scenarios. The article also highlights the significant performance gains achieved by using the RandomNumberGenerator in .NET 7, and the author identified 42 instances in their codebase where the refactoring is necessary to improve security and performance.
[New post] Microsoft .NET Code Analysis: Random Is an Insecure Random Number Generator
Older messages
[New post] Rockin’ the Code World: Special Guest Bob Reselman
Monday, August 21, 2023
dotNetDave posted: " Join me on Saturday, September 9th, 2023, at 10:00 PST on C# Corner TV for show #87 where, for the second time, my special guest will be Bob Reselman, Independent Consultant.
[New post] Microsoft .NET Code Analysis: Simplify the New Expression for C#
Wednesday, August 16, 2023
dotNetDave posted: " I have been programming with Microsoft .NET since a year before its release. I must admit that I've never liked having to define a type twice when creating it, as in this
[New post] Real World Coding Issues: Part 3 – Design, Diagnostics, and Other Common Code Issues
Monday, August 14, 2023
dotNetDave posted: " In Part 2 of this series of articles about real-world coding issues, I highlighted the code violations I discovered in the contract I worked on in the “Style” category. The
[New post] Microsoft .NET Code Analysis: Validate Arguments of Public Methods
Wednesday, August 2, 2023
dotNetDave posted: " One issue I frequently encounter while reviewing code is the lack of argument validation in public methods. As a software engineer with over 20 years of experience, I find it
[New post] Coding Faster with dotNetTips.com Spargine 6: Aug 2023 Release
Tuesday, August 1, 2023
dotNetDave posted: " I am pleased to announce the release (v2023.6.8.1) of Spargine on August 1st, 2022. Spargine is my open-source project and NuGet packages for .NET 6 & 7, which has been
You Might Also Like
Software Testing Weekly - Issue 220
Saturday, May 18, 2024
Software Testing Conferences 📚 View on the Web Archives ISSUE 220 May 18th 2024 COMMENT Welcome to the 220th issue! Have you ever been to a testing conference? They're a great way to learn about
📶 Is a Cellular iPad Worth It? — How to Prevent YouTube From Taking Over Your Screensaver
Saturday, May 18, 2024
Also: This Robot Vacuum Can Clean Stairs, and More! How-To Geek Logo May 18, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by
Weekend Reading — Objection-oriented programming
Saturday, May 18, 2024
This week we find a power-up box, replace GitHub Actions with Maven XMLs, avoid the worst website in the world, revisit RTO policies, “listen” to OpenAI employees, watch our Slack private messages, do
Daily Coding Problem: Problem #1445 [Easy]
Saturday, May 18, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Jane Street. The United States uses the imperial system of weights and measures, which
You don’t have to take our word for it…
Saturday, May 18, 2024
You can probably tell how excited we are to re-launch our Gigantic courses – which bring on-demand product management training for today's modern Product Managers and Product Leaders. In fact, we
🐍 New Python tutorials on Real Python
Saturday, May 18, 2024
Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: What Is the __pycache__ Folder in Python? In
Visualized | Life Expectancy by Region (1950-2050F) 📊
Saturday, May 18, 2024
This map shows life expectancy at birth for key global regions, from 1950 to 2050F. View Online | Subscribe Presented by Voronoi: The App Where Data Tells the Story FEATURED STORY Life Expectancy by
New Wi-Fi Vulnerability Enables Network Eavesdropping via Downgrade Attacks
Saturday, May 18, 2024
THN Daily Updates Newsletter cover The DevSecOps Playbook: Deliver Continuous Security at Speed ($19.00 Value) FREE for a Limited Time A must-read guide to a new and rapidly growing field in
🐍 New Python tutorials on Real Python
Saturday, May 18, 2024
Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: What Is the __pycache__ Folder in Python? In
Toward 'local' AI w/ Apple's new chip
Saturday, May 18, 2024
faster than the cloud ☁️