Changeset c718bda in mainline for uspace/lib/posix/source/stdlib.c


Ignore:
Timestamp:
2018-01-15T21:40:49Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

Use standard names for rand() and srand().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/stdlib.c

    rba29018 rc718bda  
    377377int posix_rand(void)
    378378{
    379         return (int) random();
     379        return (int) rand();
    380380}
    381381
     
    387387void posix_srand(unsigned int seed)
    388388{
    389         srandom(seed);
     389        srand(seed);
    390390}
    391391
Note: See TracChangeset for help on using the changeset viewer.