Changeset c718bda in mainline for uspace/lib/c/generic/uuid.c
- Timestamp:
- 2018-01-15T21:40:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dbbbe75b
- Parents:
- ba29018
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:20:07)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:40:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/uuid.c
rba29018 rc718bda 52 52 /* XXX This is a rather poor way of generating random numbers */ 53 53 gettimeofday(&tv, NULL); 54 srand om(tv.tv_sec ^ tv.tv_usec);54 srand(tv.tv_sec ^ tv.tv_usec); 55 55 56 56 for (i = 0; i < uuid_bytes; i++) 57 uuid->b[i] = rand om();57 uuid->b[i] = rand(); 58 58 59 59 /* Version 4 UUID from random or pseudo-random numbers */
Note:
See TracChangeset
for help on using the changeset viewer.