Merge tag 'xfs-6.2-merge-8' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-2.6-microblaze.git] / crypto / rsa-pkcs1pad.c
index 3285e3a..e75728f 100644 (file)
@@ -253,7 +253,7 @@ static int pkcs1pad_encrypt(struct akcipher_request *req)
        ps_end = ctx->key_size - req->src_len - 2;
        req_ctx->in_buf[0] = 0x02;
        for (i = 1; i < ps_end; i++)
-               req_ctx->in_buf[i] = 1 + prandom_u32_max(255);
+               req_ctx->in_buf[i] = get_random_u32_inclusive(1, 255);
        req_ctx->in_buf[ps_end] = 0x00;
 
        pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf,