topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 9:13 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Article on JS V8 math.random()  (Read 5928 times)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Article on JS V8 math.random()
« on: November 21, 2015, 03:45 PM »
This is an interesting and very well written article on random number generation:

https://medium.com/@...308c4fd9d#.nk9324n3r

1 short snippet from it:

The same thing is happening with the V8 PRNG and our random identifiers — under certain conditions, the PRNG’s lack of randomness is making it less likely that we’ll see a collision.

In this case the generator’s determinism worked in our favor, but that’s not always true. The general lesson here is that, even for a high quality PRNG, you can’t assume a random distribution unless the generator’s cycle length is much larger than the number of random values you’re generating.

More at the link.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,746
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Article on JS V8 math.random()
« Reply #1 on: November 21, 2015, 05:02 PM »
Interesting read, even if it was a bit above my understanding. :)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Article on JS V8 math.random()
« Reply #2 on: November 22, 2015, 01:10 AM »
Interesting read, even if it was a bit above my understanding. :)

You're not the only one. I understood a good amount of it, but not all of it.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: Article on JS V8 math.random()
« Reply #3 on: November 22, 2015, 09:40 AM »
Well, yes, Chrome's underlying "engines" are not actually known for being secure. Yesterday I've read another thing: Did you know that Chrom[e|ium] lets you force-install "admin" add-ons?