#3491 closed Task (fixed)

Use mt_rand instead of rand

Reported by: pebosi Owned by: capedfuzz
Priority: normal Milestone: 1.10 - Piwik 1.10
Component: Core Keywords:
Cc: Sensitive: no


My patch changes some uses of rand() to the faster mt_rand().

Attachments (1)

mt_rand.patch (2.3 KB) - added by pebosi 18 months ago.

Download all attachments as: .zip

Change History (3)

Changed 18 months ago by pebosi

comment:1 Changed 18 months ago by matt (mattab)

  • Milestone set to 1.9.2 - Piwik 1.9.2
  • Owner set to capedfuzz

lgtm (looks good to me)

comment:2 Changed 16 months ago by capedfuzz (diosmosis)

  • Resolution set to fixed
  • Status changed from new to closed

(In [7627]) Fixes #3491, applying pebosi's patch to use mt_rand instead of rand.

Note: See TracTickets for help on using tickets.