mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 06:31:20 -04:00
made randomBias initilized with true random bytes at start
This commit is contained in:
parent
9b0a4b966e
commit
dac885e24d
5 changed files with 30 additions and 18 deletions
|
@ -125,7 +125,11 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="distantSearchLineEdit"/>
|
||||
<widget class="QLineEdit" name="distantSearchLineEdit">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Searches a single keyword into the reachable network.</p><p>Objects already provided by friend nodes are not reported.</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>619</width>
|
||||
<height>420</height>
|
||||
<height>493</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
|
@ -38,7 +38,16 @@
|
|||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<property name="margin">
|
||||
<property name="leftMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
|
|
|
@ -487,9 +487,9 @@ static QString getSideString(uint8_t side)
|
|||
return side?QObject::tr("Client"):QObject::tr("Server") ;
|
||||
}
|
||||
|
||||
static QString getMasterKeyString(uint8_t *key)
|
||||
static QString getMasterKeyString(const uint8_t *key,uint32_t size)
|
||||
{
|
||||
return QString::fromStdString(RsUtil::BinToHex(key,32,10));
|
||||
return QString::fromStdString(RsUtil::BinToHex(key,size,10));
|
||||
}
|
||||
|
||||
void GxsNetTunnelsDialog::updateDisplay()
|
||||
|
@ -567,6 +567,7 @@ void GxsNetTunnelsDialog::updateDisplay()
|
|||
int ox=5*fact,oy=5*fact ;
|
||||
|
||||
painter.setPen(QColor::fromRgb(0,0,0)) ;
|
||||
painter.drawText(ox+2*cellx,oy+celly,tr("Random Bias: %1").arg(getMasterKeyString(bias.toByteArray(),20))) ; oy += celly ;
|
||||
painter.drawText(ox+2*cellx,oy+celly,tr("GXS Groups:")) ; oy += celly ;
|
||||
|
||||
for(auto it(groups.begin());it!=groups.end();++it)
|
||||
|
@ -595,7 +596,7 @@ void GxsNetTunnelsDialog::updateDisplay()
|
|||
.arg(getVirtualPeerStatusString(it3->second.vpid_status))
|
||||
.arg(getSideString(it3->second.side))
|
||||
.arg(getLastContactString(it3->second.last_contact))
|
||||
.arg(getMasterKeyString(it3->second.encryption_master_key))
|
||||
.arg(getMasterKeyString(it3->second.encryption_master_key,32))
|
||||
),oy+=celly ;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue