]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cls: remove error handling for get_random_bytes
authorCasey Bodley <cbodley@redhat.com>
Tue, 26 Sep 2017 14:44:23 +0000 (10:44 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 9 Oct 2017 14:42:25 +0000 (10:42 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/objclass/class_api.cc

index 3d141525c30f28a1a4cdac5c284c4129bcdd2870..d8994192dd558a468230e552e85478dd4eb71171 100644 (file)
@@ -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 */