3 ms·
This makes me wonder if Chrome Headless has enough entropy for random() if running on a Linux server.
by est 9y ago
This makes me wonder if Chrome Headless has enough entropy for random() if running on a Linux server.
- meirelles 9y agoEntropy is not a problem, surely! The choice to return deterministic values for random() is a feature, not a bug. When you are crawling pages, looking for meaningful content changes and new links you probably don't want your random() creating noise.
- zuzun 9y agoMore than enough. Chromium takes only 128 bits from /dev/urandom to seed a V8 isolate. You can also use a fixed seed like Googlebot by passing the command line flag --js-flags="--random_seed=12345" to Chromium.