Skip to content

Commit

Permalink
fix: remove rng
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Nov 15, 2024
1 parent 302aae5 commit 497aea7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webrtc/webrtc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ proc new*(T: typedesc[WebRTC], address: TransportAddress,
usernameProvider: StunUsernameProvider = defaultUsernameProvider,
usernameChecker: StunUsernameChecker = defaultUsernameChecker,
passwordProvider: StunPasswordProvider = defaultPasswordProvider,
rng: ref HmacDrbgContext,
): T =
result = T()
result.udp = UdpTransport.new(address)
result.stun = Stun.new(result.udp, usernameProvider, usernameChecker, passwordProvider, rng)
result.stun = Stun.new(result.udp, usernameProvider, usernameChecker, passwordProvider)
result.dtls = Dtls.new(result.stun)
result.sctp = Sctp.new(result.dtls)

Expand Down

0 comments on commit 497aea7

Please sign in to comment.