anchor.diff:  %%      Called by the gossip module at the beginning of every cycle. <br/>
   %%      The selected exchange data is sent back to the gossip module as a message
   %%      of the form {selected_data, Instance, ExchangeData}.
  +%%      gossip_trigger -> select_data() is equivalent to cy_shuffle in the old
  +%%      cyclon module.
   -spec select_data(State::state()) -> {ok, state()}.
  -select_data(State) ->
  -    %% cy_shuffle <=> gossip_trigger -> select_data()
  -    {ok, State}.
  +select_data({Cache, Node}=State) ->
  +    ?TRACE_DEBUG("select__data", []),
  +    NewCache =
  +        case check_state(State) of
  +            fail ->
  +                Cache;
  +            _    ->
  +                monitor:proc_set_value(?MODULE, 'shuffle',
  +                                           fun(Old) -> rrd:add_now(1, Old) end),
  +                Cache1 = cyclon_cache:inc_age(Cache),
  +                {Cache2, NodeQ} = cyclon_cache:pop_oldest_node(Cache1),
  +                Subset = cyclon_cache:get_random_subset(shuffle_length() - 1, Cache2),
  +                ForSend = cyclon_cache:add_node(Node, 0, Subset),
  +                %io:format("~p",[length(ForSend)]),
  +                Pid = pid_groups:get_my(gossip),
  +                comm:send_local(Pid, {selected_peer, instance(), {cy_cache, [NodeQ]}}),
  +                comm:send_local(Pid, {selected_data, instance(), ForSend}),
  +                Cache2
  +        end,
  +    {ok, {NewCache, Node}}.
   
   
   %% @doc Process the data from the requestor and select reply data. <br/>
  
positive.code:         log:pal("[ Cyclon ~.0p ] " ++ FormatString, [ comm:this() | Data])).
  
  
  
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %% Type Definitions
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
negative.code: -spec select_reply_data(PData::data(), Ref::pos_integer(), Round::round(),
      State::state()) -> {discard_msg | ok | retry | send_back, state()}.
  select_reply_data(_PData, _Ref, _Round, State) ->
      ?TRACE_DEBUG("select_reply_data", []),
      %% cy_subset msg <=> p2p_exch msg -> seleft_reply_data()
      {ok, State}.
  
  