more
This commit is contained in:
parent
7b8ab21b6c
commit
a3ac49182c
3 changed files with 106 additions and 70 deletions
dht/bits
|
@ -344,6 +344,11 @@ func MaxP() Bitmap {
|
|||
return FromHexP(strings.Repeat("f", NumBytes*2))
|
||||
}
|
||||
|
||||
// Min returns a bitmap with all bits set to 0
|
||||
func MinP() Bitmap {
|
||||
return FromHexP(strings.Repeat("0", NumBytes*2))
|
||||
}
|
||||
|
||||
// Rand generates a cryptographically random bitmap with the confines of the parameters specified.
|
||||
func Rand() Bitmap {
|
||||
var id Bitmap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue