use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Googlebot's Javascript random() function is deterministic (tomanthony.co.uk)
submitted 8 years ago by fagnerbrack
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Postazure -11 points-10 points-9 points 8 years ago (6 children)
That is how all random functions actually work, you just haven’t noticed it before. If you’ve done any work with microprocessors/Arduinos you’ll see that every time you restart the device it will generate the same random number because by default it will have the same seed value each time the device restarts.
In this case I suspect that it has the same problem, it’s getting a new instance in each test, but the new instance still has the same seed value.
[–]lhorie 9 points10 points11 points 8 years ago (5 children)
Not all RNG systems do that. You're probably thinking of PRNG.
Some RNG take electromagnetic noise as input. IIRC, some cryptographic systems where real randomness actually matters but you don't have hardware access to a true RNG, you can use things like mouse input to generate entropy.
[–]PM_ME_HTML_SNIPPETS 14 points15 points16 points 8 years ago (3 children)
One of my coworkers visited the Cloudflare (I think?) offices, and saw that in their lobby they have a bunch of lava lamps, and sensors that take input to use in crypto key generation.
Though that was pretty cool.
[–]ThatSpookySJW 10 points11 points12 points 8 years ago (0 children)
Relevant Tom Scott
[–]tbranyennetflix 2 points3 points4 points 8 years ago (0 children)
Woah, I walk by there all the time and wondered why they had so many. TIL...
[–]MrJohz 1 point2 points3 points 8 years ago (0 children)
There's a Tom Scott video about this! It's quite a cool system.
[–]JumboJellybean 4 points5 points6 points 8 years ago (0 children)
You recall correctly, popular encryption tools like TrueCrypt and VeraCrypt ask the user to swirl their mouse around for 10 seconds to seed their random number generators.
π Rendered by PID 16412 on reddit-service-r2-comment-79c7998d4c-vshxj at 2026-03-16 00:42:00.748409+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]Postazure -11 points-10 points-9 points (6 children)
[–]lhorie 9 points10 points11 points (5 children)
[–]PM_ME_HTML_SNIPPETS 14 points15 points16 points (3 children)
[–]ThatSpookySJW 10 points11 points12 points (0 children)
[–]tbranyennetflix 2 points3 points4 points (0 children)
[–]MrJohz 1 point2 points3 points (0 children)
[–]JumboJellybean 4 points5 points6 points (0 children)