Visual Studio VB C# 2019 Random() not so random
Published: Thursday, September 12, 2019 written by Andy Flagg
View Count: 127
Keywords: Visual Studio, 2019, VB, C#, Random()
Over the past few weeks, we took a break from a search engine project to focus on systems integration projects, and when we came back to our code on the random internet search tools, we noticed something weird, what was once random is not so random now. We did several VS 2019 updates on our test tools, but that was weird.
So late last night up until 10pm, we tested the variables and outcomes of our generate random function between several program threads and processes and found them identical while running simultaneously, though the seeds were different, or were they?
regardless, we have to fix that now. it did not affect the results, but the run time went from 1000 domains per minute to 1/10th that. we'll fix it and get back up to 30-40,000 domains per hour.
we also cut our data read from the full page to just 2k since what we are usually searching for is within the first 2048 bytes, and if not it is outside the acceptable range so why get the whole page.
more to come...
if you found this article helpful, consider contributing $10, 20 an Andrew Jackson or so..to the author. more authors coming soon
FYI we use paypal or patreon, patreon has 3x the transaction fees, so we don't, not yet.
© 2020 myBlog™ v1.1 All rights reserved. We count views as reads, so let's not over think it.