How to replace Math.random with crypto in JavaScript
A drop-in replacement for Math.random that generates cryptographically strong random values
My name is Sean McPherson, and I’m a software engineer interested in all areas of front-end development: from HTML and CSS and JavaScript frameworks to mobile apps and developer tools.
Currently I work at Khan Academy building web and mobile applications in React and React Native. On the side, I like to work on little projects that help make people’s lives easier like Toollama.com.
Outside of work, I enjoy spending time with my family (wife, two sons, and dog), playing and watching soccer, re-playing my favorite board games, and trying not to embarrass Jesus Christ.
A drop-in replacement for Math.random that generates cryptographically strong random values
A write-up on the new star feature on seanmcp.com
With specialized profiles, you can help identify issues without messing with your favorite settings.
The memo higher-order component can prevent your component for re-rendering unnecessarily, but you should use caution before using it
A little tool to calculate 5 + 4 + 3 + 2 + 1
I’ve been a big fan of CodeSandbox.io since it released. However, recently I noticed that when you want to convert a sandbox to a GitHub repository, it requires access to your organizations too.
I’m happy to give them access to my GitHub account, but I do not want to give them permissions to edit repos at Khan Academy. This seems like strange oversight from the CodeSandbox team. 🤔