r/linux_programming • • Aug 17 '14

Linux adds getrandom(2) syscall.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895
5 Upvotes

3 comments sorted by

View all comments

3

u/rowboat__cop Aug 17 '14

Reading the diffs I see:

 316	common	renameat2		sys_renameat2
+318	common	getrandom		sys_getrandom

and

 353	i386	renameat2		sys_renameat2
+355	i386	getrandom		sys_getrandom

-- what’s the deal with the non-consecutive numbering? Is there certain rule governing how syscall ids are allocated?