Skip to content

Conversation

dhontecillas
Copy link

In some cases is useful to have a deterministic / reproducible sequence of random generated words, and with this PR we add a new constructor function: NewBabblerWithRand , so we can provide an initialized random generator, to generate the words.

Also, since the non-global random generator in go is not thread-safe, a Mutex (a write one because the random objects gets updated when we request a number) is added to the call that returns a a string.

With this PR we do not break any existing API contract or functionality, and existing apps can keep having previous non deterministic.

dhontecillas and others added 8 commits March 24, 2023 19:37
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.33.0.
- [Commits](golang/net@v0.8.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
…/net-0.33.0

Bump golang.org/x/net from 0.8.0 to 0.33.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.36.0.
- [Commits](golang/net@v0.33.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
…/net-0.36.0

Bump golang.org/x/net from 0.33.0 to 0.36.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](golang/net@v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
…/net-0.38.0

Bump golang.org/x/net from 0.36.0 to 0.38.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants