Uses Web Crypto API `getRandomValues` if available. As part of issue https://github.com/dotnet/runtime/issues/40074 comment: https://github.com/dotnet/runtime/issues/40074#issuecomment-684065169