How do I override the random source? #453
Unanswered
CMCDragonkai
asked this question in
Q&A
Replies: 1 comment
-
There is not. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to override the random source being used?
I see that there's a
src/runtime/random.ts
file being used on different platforms.However I'd like to be able to override it so I can centralise my random source across multiple libraries.
Other libraries do expose the ability to monkey patch globally. But it appears the random module exported as a default, which makes it difficult to import a module and just reassign the random function.
Beta Was this translation helpful? Give feedback.
All reactions