• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / remark42 / 44888953837
87%

Build:
DEFAULT BRANCH: master
Ran 21 Nov 2026 09:20AM UTC
Jobs 1
Files 57
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Nov 2026 09:18AM UTC coverage: 87.06% (+0.004%) from 87.056%
44888953837

push

github

umputun
Generate picture IDs from random bits

A picture ID was an xid: four bytes of upload time, five bytes fixed for
the server process and a three-byte counter that grows by one with every
upload. Two uploads of one's own therefore gave away the fixed bytes and
the counter range, leaving only the second of upload and the uploader's
user ID to try for a picture uploaded in between by the same process.
GET /api/v1/picture serves a picture uploaded but not yet posted to
anyone who names its ID, so such a picture could be found by trying the
counter values in that range.

Save now names a picture with 128 bits from crypto/rand, hex-encoded,
after the uploader's user ID. Existing 20-character IDs keep loading:
the file-system store, ExtractPictures and loadPictureCtrl accept both
formats, and the Bolt store treats IDs as keys. The URL structure and
both store layouts are unchanged. github.com/rs/xid is no longer used
and is removed from the module and the example module.

3 of 3 new or added lines in 1 file covered. (100.0%)

6943 of 7975 relevant lines covered (87.06%)

52.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44888953837.1 21 Nov 2026 09:20AM UTC 57
87.06
GitHub Action Run
Source Files on build 44888953837
  • Tree
  • List 57
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 06619391 on github
  • Prev Build on master (#44888831450)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc