~mfisch/+junk/powerd

Viewing all changes in revision 13.

  • Committer: Seth Forshee
  • Date: 2013-05-16 15:03:06 UTC
  • Revision ID: seth.forshee@canonical.com-20130516150306-z7tj1769wdp2izuj
Use monotonically increasing integer for cookies

Cookies need to be unique, and using random numbers allows for
a (small) possibility of collisions. Using a monotonically
increasing integer should give unique enough values to start
with. Later this should be reevaluated for uniqueness (could
the cookies wrap?) and security (do cookies need to be non-
guessable?).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: