Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
af1edb7f
Kaydet (Commit)
af1edb7f
authored
Eki 06, 2013
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge with 3.3
üst
4f198de5
c6a2c9b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
os.rst
Doc/library/os.rst
+3
-2
random.c
Python/random.c
+3
-2
No files found.
Doc/library/os.rst
Dosyayı görüntüle @
af1edb7f
...
@@ -3377,8 +3377,9 @@ Miscellaneous Functions
...
@@ -3377,8 +3377,9 @@ Miscellaneous Functions
This function returns random bytes from an OS-specific randomness source. The
This function returns random bytes from an OS-specific randomness source. The
returned data should be unpredictable enough for cryptographic applications,
returned data should be unpredictable enough for cryptographic applications,
though its exact quality depends on the OS implementation. On a Unix-like
though its exact quality depends on the OS implementation. On a Unix-like
system this will query /dev/urandom, and on Windows it will use CryptGenRandom.
system this will query ``/dev/urandom``, and on Windows it will use
If a randomness source is not found, :exc:`NotImplementedError` will be raised.
``CryptGenRandom()``. If a randomness source is not found,
:exc:`NotImplementedError` will be raised.
For an easy-to-use interface to the random number generator
For an easy-to-use interface to the random number generator
provided by your platform, please see :class:`random.SystemRandom`.
provided by your platform, please see :class:`random.SystemRandom`.
Python/random.c
Dosyayı görüntüle @
af1edb7f
...
@@ -218,8 +218,9 @@ lcg_urandom(unsigned int x0, unsigned char *buffer, size_t size)
...
@@ -218,8 +218,9 @@ lcg_urandom(unsigned int x0, unsigned char *buffer, size_t size)
}
}
}
}
/* Fill buffer with size pseudo-random bytes, not suitable for cryptographic
/* Fill buffer with size pseudo-random bytes from the operating system random
use, from the operating random number generator (RNG).
number generator (RNG). It is suitable for for most cryptographic purposes
except long living private keys for asymmetric encryption.
Return 0 on success, raise an exception and return -1 on error. */
Return 0 on success, raise an exception and return -1 on error. */
int
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment