natalie-lang / natalie

a work-in-progress Ruby compiler, written in Ruby and C++
https://natalie-lang.org
MIT License
931 stars 61 forks source link

Make Kernel.rand a module_function #2198

Closed herwinw closed 1 month ago

herwinw commented 1 month ago

Since we're pretty much just forwarding the calls from Kernel.rand to Random::DEFAULT.rand, the failing specs have to be checked to see if it's specifically for Kernel.rand or if it's relevant for Random#rand as well.