浏览代码

Document caveats of `OS.get_unique_id()`

(cherry picked from commit 7350f90c579ce6db0be3cf67175778546459322e)
Hugo Locurcio 4 年之前
父节点
当前提交
cb2cb46907
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/OS.xml

+ 1 - 0
doc/classes/OS.xml

@@ -530,6 +530,7 @@
 			</return>
 			<description>
 				Returns a string that is unique to the device.
+				[b]Note:[/b] This string may change without notice if the user reinstalls/upgrades their operating system or changes their hardware. This means it should generally not be used to encrypt persistent data as the data saved prior to an unexpected ID change would become inaccessible. The returned string may also be falsified using external programs, so do not rely on the string returned by [method get_unique_id] for security purposes.
 				[b]Note:[/b] Returns an empty string on HTML5 and UWP, as this method isn't implemented on those platforms yet.
 			</description>
 		</method>