Project

General

Profile

Actions

Bug #3452

closed

API in Interest to reset nonce

Added by Alex Afanasyev over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
02/01/2016
Due date:
02/29/2016
% Done:

100%

Estimated time:

Description

The deprecated/removed Interest.setNonce was the only way to reset nonce of the Interest. Either the setNonce method needs to be returned or (my preference and what we have in ndn-cxx) an explicit refreshNonce should be introduced:

  /** @brief Refresh nonce
   *
   *  It's guaranteed that new nonce value differs from the existing one.
   *
   *  If nonce is already set, it will be updated to a different random value.
   *  If nonce is not set, this method does nothing.
   */
  void
  refreshNonce();
Actions

Also available in: Atom PDF