Restore SecureRandom open class + companion object while not causing mutability exceptions on K/N
Closed this issue · 3 comments
soywiz commented
Hey @IgnacioCarrionN , do you think could you make a PR with this?
IgnacioCarrionN commented
Sure! How can I test the mutability in K/N?
soywiz commented
I think the change you did was ok (moving the class temp property into the local function), since that's what could cause a mutability exception on Kotlin/Native when using the object, also you tested it already when you changed it to use the object instead of a new instance. So the only thing remaining is to restore the capability of overriding the class. object -> open class + companion object