@tmlmobilidade/strings 20260331.1620.53 → 20260406.1442.3

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.
@@ -1,5 +1,4 @@
1
1
  /* * */
2
- import crypto from 'crypto';
3
2
  /**
4
3
  * Generates a secure random number between 0 and 1.
5
4
  * This function uses the Web Crypto API so it is suitable
@@ -9,6 +8,6 @@ import crypto from 'crypto';
9
8
  */
10
9
  export function generateRandomNumber() {
11
10
  const array = new Uint32Array(1);
12
- crypto.getRandomValues(array);
11
+ globalThis.crypto.getRandomValues(array);
13
12
  return array[0] / 2 ** 32;
14
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/strings",
3
- "version": "20260331.1620.53",
3
+ "version": "20260406.1442.3",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"