We are having same issue here:
The linked example from [ic/rs/crypto/getrandom_for_wasm](https://ic/rs/crypto/getrandom_for_wasm at master · dfinity/ic · GitHub) is now 404 not found, however there is a new reference here with published crate ic-dummy-getrandom-for-wasm.
Which solved my build problem - sample code here