• henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    10
    ·
    7 days ago

    It’s also not sufficient to randomize a deck of cards using a 32-bit seed as was once common in software.

    Indeed, even with a 64 bit seed, it is not sufficient.

    • mindbleach
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago

      x = new Array(52).fill(0).map( (v,i,a) => i+1 )

      x.reduce( (a,b) => a + Math.log(b) ) / Math.log(2)

      227.02369816459176

      So it’d take 228 bits.