[PR #2298] [MERGED] Use /dev/urandom to create random password #16331

Closed
opened 2025-11-02 12:08:01 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2298
Author: @leitzler
Created: 8/12/2017
Status: Merged
Merged: 8/13/2017
Merged by: @lunny

Base: masterHead: master


📝 Commits (3)

  • d036ed4 Make sure generated password is random
  • 594a468 Make sure generated password is random
  • 89cf147 Make sure generated password is random

📊 Changes

3 files changed (+3 additions, -3 deletions)

View changed files

📝 Dockerfile (+1 -1)
📝 Dockerfile.aarch64 (+1 -1)
📝 Dockerfile.rpi (+1 -1)

📄 Description

Previous solution used "date +%s" to generate a random password. Since drone logs the timestamp when that command is executed, the generated password wasn't random at all.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2298 **Author:** [@leitzler](https://github.com/leitzler) **Created:** 8/12/2017 **Status:** ✅ Merged **Merged:** 8/13/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`d036ed4`](https://github.com/go-gitea/gitea/commit/d036ed4993b5fae2fa1eb8c288be0a2ca21dea31) Make sure generated password is random - [`594a468`](https://github.com/go-gitea/gitea/commit/594a4683826fdd9c01e4811cbfebacf208f95ec8) Make sure generated password is random - [`89cf147`](https://github.com/go-gitea/gitea/commit/89cf147249c684e8802d805813ef6046a0bb61e5) Make sure generated password is random ### 📊 Changes **3 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -1) 📝 `Dockerfile.aarch64` (+1 -1) 📝 `Dockerfile.rpi` (+1 -1) </details> ### 📄 Description Previous solution used "date +%s" to generate a random password. Since drone logs the timestamp when that command is executed, the generated password wasn't random at all. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:08:01 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16331