%% %CopyrightBegin%
%%
%% SPDX-License-Identifier: Apache-2.0
%%
%% Copyright Ericsson AB 2021-2025. All Rights Reserved.
%%
%% %CopyrightEnd%

[;1m  set_cookie(Cookie)[0m

[;;4mSince[0m:
  OTP 24.1

  Sets the magic cookie of the local node to the atom [;;4mCookie[0m,
  which is also the cookie for all nodes that have no explicit
  cookie set with [;;4mset_cookie/2[0m [;;4mCookie[0m.

  See section Distributed Erlang in the Erlang Reference Manual in
  System Documentation for more information.

  You can get this value using [;;4mget_cookie/0[0m.

  Failure: [;;4mfunction_clause[0m if the local node is not alive.
