nickva commented on issue #860: Remove usage of deprecated random module. URL: https://github.com/apache/couchdb/pull/860#issuecomment-333751138 Another update. The previous approach was similar to the couch_crypto, however that didn't work for this case because it turns out `erlang:function_exported/3` will return `false` even module is there and function is exported but it hasn't been loaded yet. In case of the `rand` module there was nothing loading it, so that check was failing. Switched to explicitly checking versions instead and calling the appropriate module. ERTS was used for version check instead of OTP version since ERTS is a nice numeric value, and OTP one changed its format (R16B0y-x to 17.x.y). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
