Skip to content

Commit 5f58b43

Browse files
authored
docs: Ensure link to getrandomvalues-not-supported is maintained (#844)
1 parent d2a61e1 commit 5f58b43

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,12 @@ Prior to `uuid@11`, it was possible for `options` state to interfere with the in
490490

491491
## Known issues
492492

493-
### React Native / Expo
493+
<!-- This header is referenced as an anchor in src/rng-browser.ts -->
494+
### "getRandomValues() not supported"
495+
496+
This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
497+
498+
#### React Native / Expo
494499

495500
1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
496501
1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point:

README_js.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,12 @@ Prior to `uuid@11`, it was possible for `options` state to interfere with the in
498498

499499
## Known issues
500500

501-
### React Native / Expo
501+
<!-- This header is referenced as an anchor in src/rng-browser.ts -->
502+
### "getRandomValues() not supported"
503+
504+
This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
505+
506+
#### React Native / Expo
502507

503508
1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme)
504509
1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point:

0 commit comments

Comments
 (0)