这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dori871992
Copy link

Add additional param "randomBytes" that will be generated and provided from outside package implementation because package itself does not support pseudo-random number generation (PRNG) for react native platform (only Node js and browsers).

@dori871992 dori871992 closed this Jun 16, 2020
@dori871992 dori871992 deleted the add_param branch June 16, 2020 07:57
@dchest
Copy link
Owner

dchest commented Jun 16, 2020

Thanks, but I don’t like this, since I’m sure this will me misused. I commented here on how to integrate React Native’s random byte generator:

the way we worked around the requirement for PRNG to be synchronous in React Native is to initialize synchronous JavaScript-level CSPRNG with a 32-byte seed provided by system's PRNG before using the library.

You can use setPRNG to do it.

@samaneh-kamalian samaneh-kamalian mentioned this pull request Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants