Reply To: OSVVM 2015.03 problem pure function GenRandSeed calls impure procedure Alert
Why OSVVM™? › Forums › OSVVM › OSVVM 2015.03 problem pure function GenRandSeed calls impure procedure Alert › Reply To: OSVVM 2015.03 problem pure function GenRandSeed calls impure procedure Alert
![](https://osvvm.wpenginepowered.com/wp-content/uploads/avatars/11/4f2d90293ce57ed989d616466bef786b-bpfull.jpg)
Hi Olof,
I will change it in the next release (either May or June) if it does not break any of the other supported simulators. Currently I test with ModelSim/QuestaSim and ActiveHDL/RivieraPro.
I will also talk to the GHDL folks about their implementation and pure subprograms. I will have to look at the LRM as the intent of a pure function is that since it accesses an internal, it may return a different value on different executions. Maybe that applies here since the alerts cause fileIO and cause variables internal to the Alert structure to change.
Whether GHDL is right or not about the usage issue, as long as the change does not impact other tools, I will make it – OSVVM is about things working.
Jim