Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • October 17, 2017, 09:13 PM
  • Proudly celebrating 10 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 2025 times)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,243
    • View Profile
    • 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:

Quote
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.


Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 8,085
    • View Profile
    • 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,243
    • View Profile
    • 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.

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,899
    • 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?