Skip to content

Instantly share code, notes, and snippets.

010000000000000000000000000000000000000000000000000000000000
00000000000000900000000000000000640001000000000001ffff000000
0000000000ffffffffffffffffffffffffffffffff0000000000000000ff
ffffffffffffff000000ffffffff00ffff1a000400010000020400000000
040200000a08ffffffffffffffff00010000000003000000000000000000
000000000000000000000000000000000000000000000203003200030000
000000000000000000000000000000000000000000000000000000000002
030000000000000000000000000000000300120010030000000000000000
00000000000000030020001000021aaa0008aaa208aa2a0a9aaa03000000
000000000000000000000000030012014703000000000000000000000000
lno1pqyqg48akvktnqf6pt7sr8mkxqcx2kr8dd3h5ne3vsc8w5e525u57wt4xvunzventge8vmzfxccrw529xfm95ve5dyurjmrg0f8rs62cwsckkjj8d94rzde5x4yrx7r3gvukkvnrga8rsv62w32xvu6vvdznxdndvduyxkr9xe4xvwtv8ppnwa35tym5za33wp6xjjj4v5myznjn0pjxz4ehdpk57df3xpjrvv6exa8kj7nhv3frx6tnxgexkw2p23drjkpk2parjjr88yeyyue4ge4hjvjzf4jy2a63vejnsc6gvfj8zvrcfyc5ujp3wdrk7mfhg3nny334xdd924njdpnnjnes0gcy6vmdf4hhxje4wd6rvjfkg3k9zw2jv3a8sdpjxye5g3n5w4g8s4e5xp4nxnehx44r2vpjgcc8qknydq6nxs23gs6xzamgw9vn2ujctycnjdn5wyurscmf0px9v6fsxppkyujkd4uyzdz9xd6y6ezdfvmkj43k2senjwtwv3e5cdejfdhhq73sxp2h5vzwx3exjvf5va9yx6enw93hxd3cfv6r2nf489ck5erhxeuycc6zd3k5ganyxdxh2dj98pjrqvrcx95hjwz5vdrnyveeg9ch5dps899yx4f4tpdx233e2venq4zvtymx54eh2cm5vmnpx5e9zmgwpqmzpckrscw8elsslhtmvqh9fvcvav0g0j02hhum47du6cm9759qaha5kv7yeemwj9xjfwqjjup0hdfzsm7nv3qq9rv32mps49z2xlwyvsj2vz78t5hv6m5h6ncvhhtpq0jhdzf6ff9zutvrzu9usdkkylkf0ftg4y0uke7rqmxywkax6edmgqpnec64rl88fa5rm892gq7ytrqgru0h6x2l83zk4zmwg4u5lq0qnx79wxdueqlr89tvzth65fwxv98rwu9wmyp4tnmhwn7yytlhtl8xqc5nls0hqf4q8dgwltfeuqee4ncr993upmcqxvhy3fmj2wsz
Test failed: called `Result::unwrap()` on an `Err` value: Error("Invalid bech32: invalid checksum", line: 1, column: 1026).
minimal failing input: value1 = LxInvoice(
Bolt11Invoice {
signed_invoice: SignedRawBolt11Invoice {
raw_invoice: RawBolt11Invoice {
hrp: RawHrp {
currency: Bitcoin,
raw_amount: Some(10000000000000000010),
si_prefix: Some(Pico),
},
@phlip9
phlip9 / keybase.md
Created May 30, 2018 14:39
keybase.md

Keybase proof

I hereby claim:

  • I am phlip9 on github.
  • I am philiphayes (https://keybase.io/philiphayes) on keybase.
  • I have a public key ASA8sMV5OGLOvBGsNYCmrRQcy3eB_9-ftOTLOguOUXj6dQo

To claim this, I am signing this object:

# Pseudo-Random Number Generators
of the Great Open Source operating systems.
### Pseudo-Random Number Generators
A Pseudo-Random Number Generator (or PRNG for short) is a deterministic algorithm used to generate a sequence of numbers that approximates the properties of true random numbers, as opposed to a hardware number generator which generally observes microscopic "noise" or other quantum phenomena to create statistically random number streams. PRNG's are often seeded by "true" random numbers obtained from hardware number generators or entropy acquired through disk seeks, keyboard presses, mouse clicks, and other sources of randomness. The main reasons for using PRNG's:
* PRNG's are generally much faster.
* There is no need for specific hardware peripherals, which may be unreliable.
* PRNG's are present in kernel space, hence no messy drivers to worry about.
@phlip9
phlip9 / divisorgen.py
Created September 6, 2012 19:47
Python Divisor Gen
def gen_divisors(prime_list):
elts = sorted(set(prime_list))
numelts = len(elts)
# Split on the number of copies of elts[i].
def gen_inner(i):
if i >= numelts:
yield 1
return
thiselt = elts[i]