[riot-commits] [RIOT-OS/RIOT] 1bde14: gcoap: don't call random_uint32_range() when COAP_...

Ken Bannister noreply at github.com
Fri Aug 2 11:10:49 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 1bde141697b1a29e02bc8338e20a02f20fda1e33
      https://github.com/RIOT-OS/RIOT/commit/1bde141697b1a29e02bc8338e20a02f20fda1e33
  Author: Martine S. Lenders <m.lenders at fu-berlin.de>
  Date:   2019-07-03 (Wed, 03 Jul 2019)

  Changed paths:
    M sys/net/application_layer/gcoap/gcoap.c

  Log Message:
  -----------
  gcoap: don't call random_uint32_range() when COAP_ACK_VARIANCE=0

`COAP_ACK_VARIANCE` is a configurable macro, so when it is 0, the
[precondition for `random_uint32_range()`][1] is not held.

[1]: https://doc.riot-os.org/group__sys__random.html#gab6ee09e1e56df3cc78acd1fbf97bfb24


  Commit: 28317019fcbd8074c41a65c5685a9fa52aa2335e
      https://github.com/RIOT-OS/RIOT/commit/28317019fcbd8074c41a65c5685a9fa52aa2335e
  Author: Ken Bannister <kb2ma at runbox.com>
  Date:   2019-08-02 (Fri, 02 Aug 2019)

  Changed paths:
    M sys/net/application_layer/gcoap/gcoap.c

  Log Message:
  -----------
  Merge pull request #11784 from miri64/gcoap/fix/ack-variance-0

gcoap: don't call random_uint32_range() when COAP_ACK_VARIANCE=0


Compare: https://github.com/RIOT-OS/RIOT/compare/5e9aef2dea02...28317019fcbd


More information about the commits mailing list