[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #25381 [Core Tor/Tor]: Add crypto_rand_double_sign() in C and Rust



#25381: Add crypto_rand_double_sign() in C and Rust
------------------------------+----------------------------------
     Reporter:  teor          |      Owner:  teor
         Type:  enhancement   |     Status:  assigned
     Priority:  Medium        |  Milestone:  Tor: 0.3.4.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  tor-relay, privcount
Actual Points:                |  Parent ID:  #23061
       Points:  2             |   Reviewer:
      Sponsor:  SponsorQ      |
------------------------------+----------------------------------
 We need a function that returns 1.0 or -1.0 with equal probability, so we
 can avoid weird tricks that waste floating point precision.

 Since we want to use this in the laplace and guassian distributions, it
 needs to be implemented in both C and Rust.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25381>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs