@syncfusion/ej2-lists 31.1.17 → 31.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -755,7 +755,9 @@ var ListBase;
755
755
  * @returns {string} - The generated ID string.
756
756
  */
757
757
  function generateId() {
758
- return Math.floor((1 + Math.random()) * 0x10000)
758
+ const array = new Uint32Array(1);
759
+ window.crypto.getRandomValues(array);
760
+ return Math.floor((1 + array[0] / (0xFFFFFFFF + 1)) * 0x10000)
759
761
  .toString(16)
760
762
  .substring(1);
761
763
  }