Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Opal 中播种随机数生成器?srand似乎没有做任何事情,并且Random直接使用该类会出错NameError: uninitialized constant Object::Random。
srand
Random
NameError: uninitialized constant Object::Random
现在不行。
有一个公开的 PR 应该可以解决这个问题,但它有点停滞不前
https://github.com/opal/opal/pull/657
需要有人接手并完成已开始的工作。