WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #28633, comment 42


Ignore:
Timestamp:
04/07/2015 01:43:26 AM (5 years ago)
Author:
sarciszewski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28633, comment 42

    v1 v2  
    11`wp_external_random_positive_int()` is there to generate a random number along a range. If you use bitshifting to get `0..1023` then add the minimum (`-1000`), that should be suitable for `(-1000, -10)`.
    22
    3 (The result from `wp_external_random_positive_int()` will be discarded if it exceeds `989` in that case.)
     3(The result from `wp_external_random_positive_int()` will be discarded if it exceeds `990` in that case, and it will start over.)