Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix random #3095

Closed
wants to merge 1 commit into from
Closed

fix random #3095

wants to merge 1 commit into from

Conversation

turuslan
Copy link

@turuslan turuslan commented Feb 9, 2023

wasm smoldot node always started with same peer id
because .slice() (clone) and .subarray() (mutable reference) were confused
so randomness was not written back to wasm memory

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Feb 9, 2023

User @turuslan, please sign the CLA here.

@tomaka
Copy link
Contributor

tomaka commented Feb 9, 2023

Nice catch!

Would it be possible for you to reopen the PR in https://github.com/smol-dot/smoldot/? This is where development will happen in the future. 🙏

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