Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #23066

Closed (moved)
Open
Opened Jul 31, 2017 by teor@teor

Test granularity, distribution, and inner range of crypto_rand* functions

In #23061 (moved), we added tests for crypto_rand_double() that test:

  • granularity: low bits being non-zero,
  • distribution: some values above and below half, and
  • inner range: mock crypto_rand() and generate lowest and highest valid results.

We should do the same for:

  • crypto_rand()
  • crypto_rand_int()
  • crypto_rand_int_range()
  • crypto_rand_uint64()
  • crypto_rand_uint64_range()
  • crypto_rand_time_range()
  • crypto_rand_hostname()
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tor: unspecified
Milestone
Tor: unspecified
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#23066