Deyao Chen

Results 9 issues of Deyao Chen

The `random` library is not cryptographically secure. We should replace it with `secrets`.

The `choose_multiple` function chooses multiple elements from an iterable, using the reservoir sampling algorithm. It is useful for sampling numbers from a list and generating a list of random numbers...

I am thinking if we can remove the internal mutability in `Rng(Cell)` by just using `Rng` and implementing methods with `fn ...(&mut self)`. This behaviour is more consistent with the...

Currently, the shell script only edits the ~/.bashrc file, but some people (like me) prefer to use zsh, which requires editing ~/.zshenv. This PR adds some code to detect the...

- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/HEAD/CONTRIBUTING.md)? - [x] Have you ensured that your commits follow the [commit style guide](https://docs.brew.sh/Formula-Cookbook#commit)? - [x] Have you checked that there aren't...

long build

I am trying to find correlations between tickets in differnet timezone (one in the New York Stock exchange and the other in the London Stock Exchange). Due to changes to...

### What happened? - Minimal Mistakes version: 4.24.0 - Ruby gem or remote theme version: 4.24.0 - Jekyll version: 3.9.2 - Git repository URL: https://github.com/sums-sta/sums - Hosted on GitHub Pages...

It seems like `fs::is_file('/opt/homebrew/bin/python3')` hangs on Mac with homebrew python installed. This doesn't seem to be a Mac specific bug because I was able to reproduce it by recreating the...

bug

Instead of copying the folder and renaming the folder, it is better to just copy the folder, because if the folder exists (e.g. cmake has already been run, or it...