pokemon-showdown/lib
Mia d3e60b31f7
Sim: Use a CSPRNG (#10806)
* Sim: Use a CSPRNG

* Add test

* fix test prng

* move prng test to others

* fix slight hack

* tf?

* Fuck this

* fucking lol

* fix crap

* i'm going to kill someone

* i hate state

* fix test

* Good work genius

* typo

* Fix exportinputlog

* Refactor for inputlog backwards compatibility

This is a pretty major refactor which is mostly unrelated to the
feature, but it does make the code a lot simpler.

* Readability pass

* Readability (again)

* Remove sodium-native dependency

* Refactor to serialize seeds in hex strings

(Also removes the Buffer dependency from PRNG, and slightly improves
comments.)

* Apparently << is 32-bit signed

* Readability

---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-01-11 13:56:34 -06:00
..
crashlogger.ts Make the logs/ directory prefix configurable 2024-05-19 12:30:22 -05:00
DASHYCODE.md Clarify Dashycode documentation 2019-07-12 02:04:07 -05:00
dashycode.ts Remove last vestiges of tslint 2020-10-27 22:49:00 +00:00
database.ts Chatlog: Add support for linecounts on the database 2024-05-18 03:14:57 -05:00
fs.ts Migrate to esbuild for compilation (#9203) 2022-12-22 15:19:29 -06:00
index.ts Support persisting battles in a Postgres database (#8442) 2022-07-22 18:07:10 -07:00
net.ts Net: Expose response data to consumers 2023-11-28 12:27:38 -06:00
postgres.ts Add a chat plugin for storing teams remotely (#9513) 2023-09-24 11:22:26 -05:00
process-manager.ts Process-manager: Don't hold unnecessary module references past their expiry 2023-11-20 21:28:42 -06:00
repl.ts Fix REPL crashing on startup 2023-12-29 17:08:58 -06:00
sql.ts SQL: Account for dist files in loading extensions 2023-11-04 16:41:47 -05:00
STREAMS.md Fix outdated reference to .end() in Streams doc 2024-01-17 22:20:59 -08:00
streams.ts TypeScript 5! 2023-04-09 13:02:19 -07:00
utils.ts Sim: Use a CSPRNG (#10806) 2025-01-11 13:56:34 -06:00