Wednesday, 25 November 2015
Interesting Snippets from 2015-11-25
-
plotly/plotly.js · GitHub
The open source javascript graphing library that powers plotly https://plot.ly/javascript/
-
TIFU by using Math.random() — Medium
The PRNG algorithm behind V8’s Math.random() is called MWC1616. If you’re only using the most significant 16 bits it has a very short effective cycle length (less than 2³⁰). In general, it does poorly on empirical tests of quality. For most non-trivial use cases it’s not safe to pretend that it’s output is truly random. Be careful using it for anything you care about.
-
How To Safely Generate A Random Number — Quarrelsome
Use urandom.