[tor-bugs] #24660 [Core Tor/Tor]: Wrap our PRNG interface(s) in Rust with appropriate traits

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Mar 26 20:06:26 UTC 2018


#24660: Wrap our PRNG interface(s) in Rust with appropriate traits
--------------------------------------------+------------------------------
 Reporter:  isis                            |          Owner:  isis
     Type:  enhancement                     |         Status:  accepted
 Priority:  Medium                          |      Milestone:  Tor:
                                            |  0.3.4.x-final
Component:  Core Tor/Tor                    |        Version:
 Severity:  Normal                          |     Resolution:
 Keywords:  rust, tor-crypto, rng, roadmap  |  Actual Points:
Parent ID:                                  |         Points:  2
 Reviewer:                                  |        Sponsor:  SponsorQ
--------------------------------------------+------------------------------
Changes (by isis):

 * owner:  (none) => isis
 * status:  new => accepted
 * points:   => 2


Comment:

 So it looks like the correct traits to implement are those in
 `rand::rand_core` ([https://doc.rust-lang.org/rand/rand_core/index.html
 documentation]) and then we [https://doc.rust-
 lang.org/rand/rand/trait.Rng.html get the automatic implementation] of
 `rand::Rng` for free.

 Assigning to myself since this is blocking #25381, #23886, and #24988,
 possibly among others, it's in the March/April 2018 roadmap, and I can
 probably do it in an afternoon?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24660#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list