[API BREAK] Use a nonce-generation function instead of a nonce

Fixed, It was introduced in an earlier edit that was changed again.