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

Devices using random numbers crash #12

Open
sean-anderson-seco opened this issue Oct 31, 2024 · 0 comments
Open

Devices using random numbers crash #12

sean-anderson-seco opened this issue Oct 31, 2024 · 0 comments

Comments

@sean-anderson-seco
Copy link

Emulating a device that uses EmulationManager.Instance.CurrentEmulation.RandomGenerator fails with:

System.InvalidOperationException: Cannot access Antmicro.Renode.Core.PseudorandomNumberGenerator from an unnamed thread.

since the C# thread is unnamed. I'm currently working around this by doing

import threading
from System.Threading import Thread
Thread.CurrentThread.Name = threading.current_thread().name

but I'm not sure if that's all there is to it.

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

No branches or pull requests

1 participant