cosmopolitan/libc/rand
Justine Tunney 8c4cce043c Make improvements to redbean
The following Lua APIs have been added:

  - IsDaemon() → bool
  - ProgramPidPath(str)

The following Lua hooks have been added:

  - OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
  - OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
  - OnProcessDestroy(pid:int)
  - OnServerStart()
  - OnServerStop()
  - OnWorkerStart()
  - OnWorkerStop()

redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.

This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.

This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 15:19:37 -07:00
..
g_rando.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
getentropy.c Change license 2020-12-27 17:18:44 -08:00
getrandom.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
internal.h Initial import 2020-06-15 07:18:57 -07:00
lcg.internal.h Make improvements 2020-12-01 03:43:40 -08:00
measureentropy.c Make improvements to redbean 2021-07-10 15:19:37 -07:00
poz.c Initial import 2020-06-15 07:18:57 -07:00
rand.c Change license 2020-12-27 17:18:44 -08:00
rand.h Make improvements to redbean 2021-07-10 15:19:37 -07:00
rand.mk Add SSL to redbean 2021-06-24 13:20:50 -07:00
rand64.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
randf.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
random.c Add random() and srandom() 2021-03-13 20:24:29 -08:00
randtest.c Initial import 2020-06-15 07:18:57 -07:00
rdrand.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
rdseed.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
rngset.c Change license 2020-12-27 17:18:44 -08:00
srand.c Change license 2020-12-27 17:18:44 -08:00
strfry.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
xorshift.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
xorshift32.c Change license 2020-12-27 17:18:44 -08:00
xorshift64.c Change license 2020-12-27 17:18:44 -08:00