anchor.diff:      end,
   
       ClientSpecs ++ ServerSpecs.
  +
  +%% @private
  +random_port() ->
  +    {ok, Socket} = gen_tcp:listen(0,[]),
  +    {ok, {_, Port}} = inet:sockname(Socket),
  +    ok = gen_tcp:close(Socket),
  +    Port.
  
positive.code:     %%
      case os:getenv("WEB_PORT", "false") of
          "false" ->
              lasp_config:set(web_port, 0),
              ok;
          WebPort ->
              lasp_config:set(web_port, list_to_integer(WebPort)),
  
negative.code:     %%
      case os:getenv("PEER_PORT", "false") of
          "false" ->
              partisan_config:set(peer_port, random_port()),
              ok;
          PeerPort ->
              partisan_config:set(peer_port, list_to_integer(PeerPort)),
  