Blender Git Commit Log

Git Commits -> Revision 03fa0ef

Revision 03fa0ef by Sybren A. Stüvel (temp-ui-tweaks)
September 22, 2021, 13:54 (GMT)
UUID: include 'seconds' field of current time in RNG seed

XOR the 'seconds' and 'nanoseconds' fields of the current time to seed the
RNG used for generating random UUIDs. This ensures a better seed just in
case the clock as no sub-second resolution.

Commit Details:

Full Hash: 03fa0ef0333a5a9019328b5eef02490a0aa4739d
Parent Commit: 9f576b7
Committed By: Pablo Vazquez
Lines Changed: +4, -1

1 Modified Path:

/source/blender/blenlib/intern/uuid.cc (+4, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021