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

Creat random key automatically when it is detected #461

Merged
merged 5 commits into from
Aug 29, 2023
Merged

Conversation

chaoming0625
Copy link
Collaborator

@chaoming0625 chaoming0625 commented Aug 27, 2023

Every time when calling brainpy.math.clear_buffer_memory(), the random function in brainpy.math.random will not be available except when recalling brainpy.math.random.seed().

This PR fixes this problem and every time after the clear_buffer_memory is called, the random key of brainpy.math.random.DEFAULT will be regenerated automatically.

@chaoming0625 chaoming0625 merged commit efb450c into master Aug 29, 2023
38 checks passed
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.

1 participant