JSDM

Loading ..................

Fisher-Yates Shuffle

描述

I wanted to try the Fisher-Yates shuffling algorithm for adding an unbiased randomization to the seed data in AES encryption. Looks like the output is fairly uniformly random; I'll add an encryption demo shortly. The Fisher-Yates algorithm can still be defeated by predicting the Math.random() output, and also, there's a statistical issue limiting the possible number of shuffled arrangements. Meh, I'll figure that out later.

评论

  1. 暂无评论

发表评论 支持Markdown

你必须 登录 之后才可以留言
  • 4349 查看
  • 0 评论
  • 0 喜爱

暂无点赞的用户

暂无Fork