anchor.diff:           terminate/2,
            code_change/3]).
   
  --record(state, {store, nodes=[]}).
  +-record(state, {store, membership=[]}).
   
   -include("partisan.hrl").
   
  
positive.code: %%%===================================================================
  
  %% @private
  init([Nodes]) ->
      Store = dict:new(),
  
      %% Seed the random number generator using the deterministic seed.
      partisan_config:seed(),
  
      {ok, #state{nodes=Nodes, store=Store}}.
  
  %% @private
  handle_call(_Msg, _From, State) ->
      {reply, ok, State}.
  
  %% @private
  handle_cast({write, {FromPid, FromRequestId}=From, Key, Value}, #state{nodes=[Primary, Collaborator|_Rest], store=Store0}=State) ->
      case node() of 
          Primary ->
              lager:info("~p: node ~p received write for key ~p with value ~p", [?MODULE, node(), Key, Value]),
  
negative.code: -behaviour(gen_server).
  
  %% API
  -export([start_link/0,
           write/2,
           read/1,
           update/1]).
  
  %% gen_server callbacks
  -export([init/1,
  