aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/client_config
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-07-30 12:46:00 -0700
committerGravatar yang-g <yangg@google.com>2015-07-30 12:46:00 -0700
commitc5d3f4371337abf8fd56f71085fa807b1e68b9c2 (patch)
tree6cab354fd5beba9fcb739ba6e14ceac255ec0aa8 /src/core/client_config
parentf145b3b5be939dceabbef345196621ba20483a3d (diff)
make random uint32
Diffstat (limited to 'src/core/client_config')
-rw-r--r--src/core/client_config/subchannel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/client_config/subchannel.c b/src/core/client_config/subchannel.c
index 4d75994fdb..17773bd2f4 100644
--- a/src/core/client_config/subchannel.c
+++ b/src/core/client_config/subchannel.c
@@ -132,7 +132,7 @@ struct grpc_subchannel {
/** our alarm */
grpc_alarm alarm;
/** current random value */
- gpr_int32 random;
+ gpr_uint32 random;
};
struct grpc_subchannel_call {
@@ -272,8 +272,8 @@ void grpc_subchannel_del_interested_party(grpc_subchannel *c,
grpc_pollset_set_del_pollset(c->pollset_set, pollset);
}
-static gpr_int32 random_seed() {
- return gpr_time_to_millis(gpr_now(GPR_CLOCK_MONOTONIC));
+static gpr_uint32 random_seed() {
+ return (gpr_uint32)(gpr_time_to_millis(gpr_now(GPR_CLOCK_MONOTONIC)));
}
grpc_subchannel *grpc_subchannel_create(grpc_connector *connector,