TGTGInsighttelegram intelligenceLIVE / telegram public index
Back to channels
djangoproject avatar

TGINSIGHT CHAT

djangoproject

@djangoproject

Technologies

connect with us: @XtakjoyX

Subscribers156Current channel subscribers
Tracked posts592Indexed post count
Recent reach186Sum of recent post views
Recent posts

Recent posts

Tag: #systemrandom · 2 posts

当前筛选 #systemrandom清除筛选

Posted Jan 16

http://stackoverflow.com/questions/2257441/random-string-generation-with-upper-case-letters-and-digits-in-python/23728630#23728630 Using #random.#SystemRandom() instead of just random uses /dev/urandom on *nix machines and #CryptGenRandom() in Windows. These are cryptographically secure #PRNGs. Using random.choice instead of random.SystemRandom().choice in an application that requires a secure PRNG could be potentially devastating, and given the popularity of this question, I bet that mistake has been made many times already. ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(N))

90 views

Posted Jan 15

http://stackoverflow.com/questions/2257441/random-string-generation-with-upper-case-letters-and-digits-in-python/23728630#23728630 Using #random.#SystemRandom() instead of just random uses /dev/urandom on *nix machines and #CryptGenRandom() in Windows. These are cryptographically secure #PRNGs. Using random.choice instead of random.SystemRandom().choice in an application that requires a secure PRNG could be potentially devastating, and given the popularity of this question, I bet that mistake has been made many times already. ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(N))

96 views