Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- plugins: fully enabled, and ready for you to write some!
- plugins: `pay` is now a plugin.
- protocol: `pay` will now use routehints in invoices if it needs to.
- lightning-cli: `help <cmd>` finds man pages even if `make install` not run.
- JSON API: `waitsendpay` now has an `erring_direction` field.
- JSON API: `listpeers` now has a `direction` field in `channels`.
- JSON API: `listchannels` now takes a `source` option to filter by node id.
- JSON API: New command `paystatus` gives detailed information on `pay` commands.
- JSON API: `getroute` `riskfactor` argument is simplified; `pay` now defaults to setting it to 10.

### Changed

Expand All @@ -38,6 +40,8 @@ changes.
(eg. 4 billion) was slow due to a bug.
- Fixed occasional deadlock with peers when exchanging huge amounts of gossip.
- You can no longer make giant unpayable "wumbo" invoices.
- CLTV of total route now correctly evaluated when finding best route.
- `riskfactor` arguments to `pay` and `getroute` now have an effect.

### Security

Expand Down
7 changes: 7 additions & 0 deletions common/pseudorand.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ uint64_t pseudorand(uint64_t max)
return isaac64_next_uint(&isaac64, max);
}

uint64_t pseudorand_u64(void)
{
init_if_needed();

return isaac64_next_uint64(&isaac64);
}

const struct siphash_seed *siphash_seed(void)
{
init_if_needed();
Expand Down
5 changes: 5 additions & 0 deletions common/pseudorand.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
*/
uint64_t pseudorand(uint64_t max);

/**
* pseudorand - pseudo (guessable!) random number between 0 and UINT64_MAX.
*/
uint64_t pseudorand_u64(void);

/**
* Get the siphash seed for hash tables.
*/
Expand Down
Loading