grpc_status_code status;
grpc_slice recv_status_details = grpc_empty_slice();
grpc_slice send_status_details = grpc_empty_slice();
- grpc_byte_buffer *message;
+ grpc_byte_buffer *message = NULL;
int cancelled;
grpc_call_error error;
goto cleanup;
}
+ // c-core may call rand(). If we don't call srand() here, all the
+ // random numbers being returned would be the same.
+ gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME);
+ srand(now.tv_nsec);
+
array_hash = Z_ARRVAL_P(array);
char *key = NULL;