Closed gaukas closed 6 months ago
We used wazero.ModuleConfig in WazeroModuleConfigFactory:
wazero.ModuleConfig
WazeroModuleConfigFactory
https://github.com/gaukas/water/blob/1acc17fba677cb505b8cd366dcb9ce49c226535e/wazero_config.go#L12-L15
However, by default all these system critical components are unset/set-to-noop/set-to-fake instead of default to using system-default.
At least, we must explicitly invoke:
WithSysWalltime()
WithSysNanotime()
WithSysNanosleep()
WithRandSource(io.Reader)
We used
wazero.ModuleConfig
inWazeroModuleConfigFactory
:https://github.com/gaukas/water/blob/1acc17fba677cb505b8cd366dcb9ce49c226535e/wazero_config.go#L12-L15
However, by default all these system critical components are unset/set-to-noop/set-to-fake instead of default to using system-default.
At least, we must explicitly invoke:
WithSysWalltime()
WithSysNanotime()
WithSysNanosleep()
WithRandSource(io.Reader)