From: Casey Bodley Date: Tue, 26 Sep 2017 14:44:23 +0000 (-0400) Subject: cls: remove error handling for get_random_bytes X-Git-Tag: v13.0.1~587^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c678cc574c7d36e99ea4d353bb88b76d186e22d0;p=ceph-ci.git cls: remove error handling for get_random_bytes Signed-off-by: Casey Bodley --- diff --git a/src/objclass/class_api.cc b/src/objclass/class_api.cc index 3d141525c30..d8994192dd5 100644 --- a/src/objclass/class_api.cc +++ b/src/objclass/class_api.cc @@ -636,7 +636,8 @@ int cls_cxx_list_watchers(cls_method_context_t hctx, int cls_gen_random_bytes(char *buf, int size) { - return get_random_bytes(buf, size); + ch->cct->random()->get_bytes(buf, size); + return 0; } int cls_gen_rand_base64(char *dest, int size) /* size should be the required string size + 1 */