Opened 3 months ago

Closed 3 months ago

#29536 closed enhancement (fixed)

prng: Add a global fast PRNG object

Reported by: dgoulet Owned by: nickm
Priority: Medium Milestone: Tor: 0.4.1.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-relay, prng, prop289
Cc: Actual Points: .1
Parent ID: #26288 Points: 0.1
Reviewer: dgoulet Sponsor: SponsorV

Description

prop289 needs to have a fast PRNG allocated early in order to avoid creating a fast prng object every time we want to add random to a cell.

Child Tickets

Change History (5)

comment:1 Changed 3 months ago by nickm

(this actually wants to be thread-local, for performance reasons)

comment:2 Changed 3 months ago by nickm

Actual Points: .1
Status: assignedneeds_review

See branch thread_rng with PR at https://github.com/torproject/tor/pull/714

comment:3 Changed 3 months ago by dgoulet

lgtm;

comment:4 Changed 3 months ago by dgoulet

Status: needs_reviewmerge_ready

comment:5 Changed 3 months ago by asn

Resolution: fixed
Status: merge_readyclosed

Merged to master!

Note: See TracTickets for help on using tickets.