title: What could cause Math.random() to generate the same "random" number on every page reload?
body: <p>I'm making an electron app and in the renderer process I have a method that calls Math.random(). Just a simple <code>return Math.floor(Math.random() * 1000)</code>, nothing special.
  The problem is that it literally returns the same numbers every time I run the app. 541, 271, 919, 284.. etc. Every time I re-open the app, it's the same numbers in the same order.</p>
  
  <p>What could be the cause of this?</p>
  
  <p>EDIT: 
  This is a weird issue. After some testing I marked down that</p>
  
  <ul>
  <li><p>the issue persist only in the renderer process (written in typescript and compiled using webpack).</p></li>
  <li><p><code>window.crypto.getRandomValues(array)</code> works as expected.</p></li>
  </ul>