Skip to content

Conversation

@loci-dev
Copy link

@loci-dev loci-dev commented Jan 1, 2026

Mirrored from leejet/stable-diffusion.cpp#1157

This PR ensures that each image generation request uses a unique random seed when the user specifies seed: -1. Previously, a seed of -1 would result in deterministic behavior across requests. The changes introduce:

  1. Inclusion of <random> header for random device usage.
  2. Logic in examples/server/main.cpp to detect seed == -1 and replace it with a freshly generated 64‑bit seed using std::random_device.

@loci-dev loci-dev had a problem deploying to stable-diffusion-cpp-prod January 1, 2026 00:50 — with GitHub Actions Failure
@loci-agentic-ai
Copy link

Explore the complete analysis inside the Version Insights

@loci-dev loci-dev force-pushed the master branch 7 times, most recently from 3e2648e to 178a7d8 Compare January 11, 2026 09:09
@loci-dev loci-dev force-pushed the master branch 6 times, most recently from 1f909e5 to 027a37e Compare January 19, 2026 16:11
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.

3 participants