Why do not use Math.random()

What’s the risk?

Are you at risk?

Cryptographically strong generation method

(function(){
var buf = new Uint8Array(1);
window.crypto.getRandomValues(buf);
alert(buf[0]);
})();

Summary

Sources

--

--

--

Software Developer • Making my experiences and knowledge can be useful for someone else. —

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Weekly AMA Session Recap (2 July)

https://nigeriaupdates.com/our-servers-not-hacked-identities-of-nigerians-safe-nimc/amp/

What is Privilege Escalation?

What is Privilege Escalation?

Certified White Hat Hacker™

{UPDATE} Samurai Showdown Hack Free Resources Generator

Living Off The Land: Suspicious System32

The Rising Culpability of Hospitals, Regulators & Elected Officials in Deaths by Ransom Attack

What Is Social Engineering? Common Examples and Prevention Tips

What is Social Engineering?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kemil Beltre

Kemil Beltre

Software Developer • Making my experiences and knowledge can be useful for someone else. —

More from Medium

Git: What You Need To Know

My Favorite Software Development Projects

A black computer chair is pushed up to a wooden desk with two computer monitors that are turned off

What Does A 10x Developer Even Mean?

Solid Design Principles In Javascript (Part 2) — Open-Closed Principle