mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
修复未设置随机种子时,调用随机数报错问题
This commit is contained in:
@@ -15,6 +15,7 @@ export class RandomManager {
|
||||
static get instance(): RandomManager {
|
||||
if (this._instance == null) {
|
||||
this._instance = new RandomManager();
|
||||
this._instance.random = Math.random;
|
||||
}
|
||||
return this._instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user